Zepi/Core/AccessControl/src/Manager/AccessControlManager.php
public function getPermissionForId($id)
    {
        $permission = $this->permissionsDataSource->getPermissionForId($id);
        
        if ($permission instanceof \Zepi\Core\AccessControl\Entity\Permission) {
            $accessEntity = $this->getAccessEntityForUuid($permission->getAccessEntityClass(), $permission->getAccessEntityUuid());
            
            if ($accessEntity instanceof \Zepi\Core\AccessControl\Entity\AccessEntity) {
                $permission->setAccessEntity($accessEntity);
            }
        }
        
        return $permission;
    }
public function getPermissionForId($id)
    {
        $permission = $this->permissionsDataSource->getPermissionForId($id);
        
        if ($permission instanceof \Zepi\Core\AccessControl\Entity\Permission) {
            $accessEntity = $this->getAccessEntityForUuid($permission->getAccessEntityClass(), $permission->getAccessEntityUuid());
            
            if ($accessEntity instanceof \Zepi\Core\AccessControl\Entity\AccessEntity) {
                $permission->setAccessEntity($accessEntity);
            }
        }
        
        return $permission;
    }
public function getPermissionForId ( $ id ) { $ permission = $ this -> permissionsDataSource -> getPermissionForId ( $ id ) ; if ( $ permission instanceof \ Zepi \ Core \ AccessControl \ Entity \ Permission ) { $ accessEntity = $ this -> getAccessEntityForUuid ( $ permission -> getAccessEntityClass ( ) , $ permission -> getAccessEntityUuid ( ) ) ; if ( $ accessEntity instanceof \ Zepi \ Core \ AccessControl \ Entity \ AccessEntity ) { $ permission -> setAccessEntity ( $ accessEntity ) ; } } return $ permission ; }
Returns the permission object for the given id

@access public
@param integer $id
@return false|\Zepi\Core\AccessControl\Entity\Permission
Returns the permission object for the given id