File manager - Edit - /home/capoccitel/www/administrator/components/com_tlpportfolio/controllers/tools.php
Back
<?php /** * @version 2.0 * @package com_tlpportfolio * @author TechLabPro <info@techlabpro.com> * @copyright Copyright (C) 2015. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; jimport('joomla.application.component.controlleradmin'); use Joomla\Utilities\ArrayHelper; /** * Tools list controller class. * * @since 1.6 */ class TlpportfolioControllerTools extends JControllerAdmin { /** * Proxy for getModel. * * @param string $name Optional. Model name * @param string $prefix Optional. Class prefix * @param array $config Optional. Configuration array for model * * @return object The Model * * @since 1.6 */ public function getModel($name = 'tool', $prefix = 'TlpportfolioModel', $config = array()) { $model = parent::getModel($name, $prefix, array('ignore_request' => true)); return $model; } /** * Method to save the submitted ordering values for records via AJAX. * * @return void * * @since 3.0 */ public function saveOrderAjax() { // Get the input $input = JFactory::getApplication()->input; $pks = $input->post->get('cid', array(), 'array'); $order = $input->post->get('order', array(), 'array'); // Sanitize the input ArrayHelper::toInteger($pks); ArrayHelper::toInteger($order); // Get the model $model = $this->getModel(); // Save the ordering $return = $model->saveorder($pks, $order); if ($return) { echo "1"; } // Close the application JFactory::getApplication()->close(); } }
| ver. 1.6 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings