File manager - Edit - /home/ferretapmx/public_html/api/components/com_users/src/Controller/LevelsController.php
Back
<?php /** * @package Joomla.API * @subpackage com_users * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Users\Api\Controller; use Joomla\CMS\MVC\Controller\ApiController; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * The levels controller * * @since 4.0.0 */ class LevelsController extends ApiController { /** * The content type of the item. * * @var string * @since 4.0.0 */ protected $contentType = 'levels'; /** * The default view for the display method. * * @var string * @since 4.0.0 */ protected $default_view = 'levels'; /** * Method to allow extended classes to manipulate the data to be saved for an extension. * * @param array $data An array of input data. * * @return array * * @since 5.4.7 */ protected function preprocessSaveData(array $data): array { if ($this->input->getMethod() === 'PATCH') { $data['rules'] = json_decode($data['rules'], true); } return $data; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings