Ejemplo n.º 1
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('domId', null, $args);
     $this->arg('formId', null, $args);
     $this->arg('listDirn', null, $args);
     $this->arg('listOrder', null, $args);
     $this->arg('ctrl', null, $args);
     $this->arg('orderingKey', null, $args, 'a.ordering');
     $this->arg('saveOrderingUrl', null, $args);
     $this->arg('nestedList', null, $args, false);
     $this->arg('proceedSaveOrderButton', null, $args, false);
     $this->enabled = !isset($this->listOrder) || $this->listOrder == $this->orderingKey && $this->listDirn != 'desc';
     if (!$this->saveOrderingUrl && $this->ctrl) {
         $this->saveOrderingUrl = JDom::getRoute(array('task' => $this->ctrl . '.saveOrderAjax', 'option' => $this->getExtension(), 'view' => '', 'layout' => '', 'tmpl' => 'component'));
     }
     if (!$this->jVersion('3.0')) {
         $this->attachJs = 'sortablelist.js';
         $this->attachCss = 'sortablelist.css';
     }
 }
Ejemplo n.º 2
0
 function __construct($args)
 {
     parent::__construct($args);
 }