system/modules/DocumentManagementSystem/classes/DmsLoader.php
private function getAccessRights(\Category $category, \DmsLoaderParams $params)
  {
    $objAccessRight = $this->Database->prepare("SELECT * FROM tl_dms_access_rights WHERE pid = ?")
                     ->execute($category->id);
    $arrAccessRights = array();
    while ($objAccessRight->next())
    {
      $accessRight = $this->buildAccessRight($objAccessRight);
      $accessRight->category = $category;
      $arrAccessRights[$accessRight->id] = $accessRight;
    }
    return $arrAccessRights;
  }
private function getAccessRights(\Category $category, \DmsLoaderParams $params)
  {
    $objAccessRight = $this->Database->prepare("SELECT * FROM tl_dms_access_rights WHERE pid = ?")
                     ->execute($category->id);
    $arrAccessRights = array();
    while ($objAccessRight->next())
    {
      $accessRight = $this->buildAccessRight($objAccessRight);
      $accessRight->category = $category;
      $arrAccessRights[$accessRight->id] = $accessRight;
    }
    return $arrAccessRights;
  }
private function getAccessRights ( \ Category $ category , \ DmsLoaderParams $ params ) { $ objAccessRight = $ this -> Database -> prepare ( "SELECT * FROM tl_dms_access_rights WHERE pid = ?" ) -> execute ( $ category -> id ) ; $ arrAccessRights = array ( ) ; while ( $ objAccessRight -> next ( ) ) { $ accessRight = $ this -> buildAccessRight ( $ objAccessRight ) ; $ accessRight -> category = $ category ; $ arrAccessRights [ $ accessRight -> id ] = $ accessRight ; } return $ arrAccessRights ; }
Get all access rights for the given category.

@param  category  $category  The category to get the access rights for.
@param  DmsLoaderParams  $params  The configured params to use while loading.
@return  arr  Returns array of access rights.
Get all access rights for the given category .