Пример #1
0
 public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '')
 {
     parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents);
     if (isset($this->mArgs['icon'])) {
         $this->mIcon = $this->mArgs['icon'];
     }
     $this->_fillDefinition();
 }
 public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '')
 {
     parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents);
     if (isset($this->mArgs['itemtype'])) {
         $this->mItemType = $this->mArgs['itemtype'];
     }
     if (isset($this->mArgs['itemid'])) {
         $this->mItemId = $this->mArgs['itemid'];
     }
     if (isset($this->mArgs['defaultaction'])) {
         $this->mDefaultAction = $this->mArgs['defaultaction'];
     }
     if (isset($this->mArgs['acltype'])) {
         $this->mAclType = $this->mArgs['acltype'];
     }
     if (isset($this->mArgs['itemownerid'])) {
         $this->mItemOwnerId = $this->mArgs['itemownerid'];
     }
     $this->fillDefinition();
 }
 public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '')
 {
     parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents);
     /*
             if ( isset($this->mArgs['frame'] ) and
                 (
                  $this->mArgs['frame'] == 'true'
                  or
                  $this->mArgs['frame'] == 'false'
                  )
                ) $this->mArgs['frame'] = $this->mArgs['frame'];
             else $this->mArgs['frame'] = 'true';
     */
     if (isset($this->mArgs['toolbar']) and ($this->mArgs['toolbar'] == 'true' or $this->mArgs['toolbar'] == 'false')) {
         $this->mArgs['toolbar'] = $this->mArgs['toolbar'];
     } else {
         $this->mArgs['toolbar'] = 'false';
     }
     $this->mArgs['frame'] = 'false';
     $this->_fillDefinition();
 }