ConfigPress.php
8 years ago
Content.php
8 years ago
Core.php
8 years ago
Manager.php
8 years ago
Tools.php
8 years ago
Manager.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * ====================================================================== |
| 5 | * LICENSE: This file is subject to the terms and conditions defined in * |
| 6 | * file 'license.txt', which is part of this source code package. * |
| 7 | * ====================================================================== |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * Backend Utility manager |
| 12 | * |
| 13 | * @package AAM |
| 14 | * @author Vasyl Martyniuk <vasyl@vasyltech.com> |
| 15 | */ |
| 16 | class AAM_Backend_Feature_Settings_Manager extends AAM_Backend_Feature_Abstract { |
| 17 | |
| 18 | /** |
| 19 | * Save AAM utility options |
| 20 | * |
| 21 | * @return string |
| 22 | * |
| 23 | * @access public |
| 24 | */ |
| 25 | public function save() { |
| 26 | $param = AAM_Core_Request::post('param'); |
| 27 | $value = stripslashes(AAM_Core_Request::post('value')); |
| 28 | |
| 29 | AAM_Core_Config::set($param, $value); |
| 30 | |
| 31 | return json_encode(array('status' => 'success')); |
| 32 | } |
| 33 | |
| 34 | } |