コード例 #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
 /**
  * @return Role[]
  */
 public function getChildren()
 {
     return $this->children->toArray();
 }
コード例 #3
0
ファイル: User.php プロジェクト: venne/venne
 /**
  * @return ArrayCollection|Role[]
  */
 public function getRoleEntities()
 {
     return $this->roleEntities->toArray();
 }