示例#1
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('title', null, $args);
     $this->arg('width', null, $args);
     $this->arg('height', null, $args);
     $this->arg('tasks', null, $args);
     $this->arg('display', null, $args, 'icon');
 }
示例#2
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('direction', null, $args, 'horizontal');
     $this->arg('colorKey', null, $args, 'color');
     $this->arg('iconKey', null, $args, 'icon');
     $this->arg('viewType', null, $args);
     if ($this->useFramework('bootstrap')) {
         $this->assetName = 'bootstrap';
     }
 }
示例#3
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('states', null, $args);
     $this->arg('display', null, $args, 'radio');
     $this->arg('listKey', null, $args, 'value');
     $this->arg('labelKey', null, $args, 'text');
     $this->arg('colorKey', null, $args, 'color');
     $this->arg('iconKey', null, $args, 'icon');
     $labelKey = $this->labelKey;
     $listKey = $this->listKey;
     $colorKey = $this->colorKey;
     $iconKey = $this->iconKey;
     $viewKey = $this->viewKey;
     if (!$this->list) {
         //Default states are PUBLISHED state
         if (!$this->states) {
             $this->states = array(0 => array('icomoon-unpublish', 'JUNPUBLISHED', 'both', 'danger'), 1 => array('icomoon-publish', 'JPUBLISHED', 'both', 'success'), 2 => array('icomoon-archive', 'JARCHIVED', 'both', 'info'), -2 => array('icomoon-trash', 'JTRASHED', 'both', 'warning'));
         }
         //Convert static list to object list
         $this->items = array();
         foreach ($this->states as $value => $state) {
             $item = new stdClass();
             $item->{$listKey} = (string) $value;
             if ($c = count($state)) {
                 $item->{$iconKey} = $state[0];
             }
             if ($c > 1) {
                 $item->{$labelKey} = JText::_($state[1]);
             }
             if ($c > 2) {
                 $item->{$viewKey} = $state[2];
             }
             if ($c > 3) {
                 $item->{$colorKey} = $state[3];
             }
             $this->list[] = $item;
         }
     }
 }
示例#4
0
 function __construct($args)
 {
     parent::__construct($args);
 }
示例#5
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('pagination', null, $args);
 }
示例#6
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('ui', null, $args);
 }
示例#7
0
 function __construct($args)
 {
     parent::__construct($args);
     $this->arg('keyPattern', 14, $args, "pattern");
 }