countRoleAssignmentsUsingSection() abstract public method

Counts the number of role assignments using section with $id in their limitations.
abstract public countRoleAssignmentsUsingSection ( integer $id ) : integer
$id integer
return integer
 /**
  * Counts the number of role assignments using section with $id in their limitations.
  *
  * @param int $id
  *
  * @return int
  */
 public function countRoleAssignmentsUsingSection($id)
 {
     try {
         return $this->innerGateway->countRoleAssignmentsUsingSection($id);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
示例#2
0
 /**
  * Counts the number of role assignments using section with $sectionId in their limitations.
  *
  * @param int $sectionId
  *
  * @return int
  */
 public function countRoleAssignmentsUsingSection($sectionId)
 {
     return $this->sectionGateway->countRoleAssignmentsUsingSection($sectionId);
 }