예제 #1
0
파일: Permission.php 프로젝트: cawaphp/acl
 /**
  * @param string $key
  * @param array $childs
  */
 public function __construct($key, array $childs = [])
 {
     parent::__construct($key);
     $this->childs = $childs;
 }
예제 #2
0
 /**
  * @param string $name
  * @param mixed $actions Array of string containing the actions for this permission.
  */
 public function __construct($name, $actions = '', $relatedObject = null)
 {
     parent::__construct($name);
     $this->actions = self::explodeActions($actions);
     $this->relatedObject = $relatedObject;
 }
예제 #3
0
파일: Filter.php 프로젝트: cawaphp/acl
 /**
  * @param string $key
  * @param array $filters
  */
 public function __construct($key, array $filters = [])
 {
     parent::__construct($key);
     $this->filters = $filters;
 }