コード例 #1
0
ファイル: BaseFile.php プロジェクト: venne/files
 /**
  * @return \Venne\Security\Role[]
  */
 public function getWriteRoles()
 {
     if (!$this->isAllowedToRead()) {
         throw new PermissionDeniedException();
     }
     return $this->writeRoles->toArray();
 }
コード例 #2
0
ファイル: Role.php プロジェクト: venne/venne
 /**
  * @param Role $child
  */
 public function removeChildren(Role $child)
 {
     $this->children->removeElement($child);
 }
コード例 #3
0
ファイル: User.php プロジェクト: venne/venne
 public function removeRoleEntity(Role $role)
 {
     $this->roleEntities->removeElement($role);
 }