countPoliciesUsingSection() 추상적인 공개 메소드

Counts the number of role policies using section with $id in their limitations.
abstract public countPoliciesUsingSection ( integer $id ) : integer
$id integer
리턴 integer
예제 #1
0
 /**
  * Counts the number of role policies using section with $id in their limitations.
  *
  * @param int $id
  *
  * @return int
  */
 public function countPoliciesUsingSection($id)
 {
     try {
         return $this->innerGateway->countPoliciesUsingSection($id);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
예제 #2
0
 /**
  * Number of role policies using a Section in limitations.
  *
  * @param mixed $sectionId
  *
  * @return int
  */
 public function policiesCount($sectionId)
 {
     return $this->sectionGateway->countPoliciesUsingSection($sectionId);
 }