Example #1
0
 /**
  * @inheritdoc
  */
 public function __construct($id)
 {
     parent::__construct($id);
     //overwrite default set of capabilities if AAM capset is defined
     if ($this->isDefaultCapSet() === false) {
         //make sure that aam_capability is actually array
         if (is_array($this->getSubject()->aam_caps)) {
             $allcaps = array_merge($this->getSubject()->allcaps, $this->getSubject()->aam_caps);
             $this->getSubject()->allcaps = $allcaps;
         }
     }
 }
Example #2
0
 /**
  * Constructor
  *
  * @param string|int $id
  *
  * @return void
  *
  * @access public
  */
 public function __construct($id)
 {
     //run parent constructor
     parent::__construct('');
 }