Current Path :
/
home
/
develito
/
public_html
/
plugins
/
system
/
adminorder
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/plugins/system/adminorder/adminorder.php
<?php /** * @package Joomla.Administrator * @subpackage plg_adminorder * @author lomart.fr * @version 1.2.1 * @copyright Copyright (C) 2014. All rights reserved. * @license GNU General Public License version 2 or later. */ // no direct access defined('_JEXEC') or die ; jimport('joomla.plugin.plugin'); class plgSystemAdminOrder extends JPlugin { function onAfterInitialise() { //-- les contextes pris en charge (option => view) $contexts['com_content'] = 'articles'; $contexts['com_plugins'] = 'plugins'; $contexts['com_installer'] = 'manage'; $contexts['com_modules'] = 'modules'; $app = JFactory::getApplication(); $option = $app->input->getCmd('option'); $view = $app->input->getCmd('view', '---'); if (array_key_exists($option, $contexts)) { $view = $app->input->getCmd('view', $contexts[$option]); if ($view==$contexts[$option]) { $context = $option.'.'.$view; if (!$app->getUserStateFromRequest($context.'.ordercol', 'filter_order', 0)) { $orderOrd = $this->params->get($contexts[$option].'_ordering','a.id'); $orderDir = $this->params->get($contexts[$option].'_direction','DESC'); $app->setUserState($context.'.ordercol', $orderOrd); $app->setUserState($context.'.orderdirn', $orderDir); $app->setUserState($context.'.list', array('fullordering' => $orderOrd.' '.$orderDir)); // 8-6-15 stockage différent pour extensions if ($context=="com_installer.manage") { $app->setUserState($context.'.list.ordering', $orderOrd); } } } } return; } }