예제 #1
0
파일: Role.php 프로젝트: webowy/zend-acl
 /**
  * @param string $roleId
  * @param $label
  * @param bool|true $isEditable
  * @param bool|true $isDeletable
  * @param null $parentId
  */
 public function __construct($roleId, $label, $isEditable = true, $isDeletable = true, $parentId = null)
 {
     parent::__construct($roleId);
     $this->setLabel($label);
     $this->setIsEditable($isEditable);
     $this->setIsDeletable($isDeletable);
     $this->setParentId($parentId);
 }
예제 #2
0
 /**
  * @param string|RoleInterface|null                 $roleId
  * @param string|RoleInterface|RoleInterface[]|null $parent
  */
 public function __construct($roleId, $parent = null)
 {
     if ($roleId instanceof RoleInterface) {
         $roleId = $roleId->getRoleId();
     }
     parent::__construct($roleId);
     $this->setParent($parent);
 }
예제 #3
0
 function __construct($name = '')
 {
     parent::__construct(get_class($this));
     $this->name = $name;
 }
예제 #4
0
 /**
  * Constructor
  *
  * @param string $identity
  * @param $role
  */
 public function __construct($identity, $role = 'consumer')
 {
     $this->identity = $identity;
     parent::__construct($role);
 }
예제 #5
0
파일: Guest.php 프로젝트: parrotcage/fovea
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(static::$role);
 }