eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::countPoliciesUsingSection PHP Method

countPoliciesUsingSection() abstract public method

Counts the number of role policies using section with $id in their limitations.
abstract public countPoliciesUsingSection ( integer $id ) : integer
$id integer
return integer
    public abstract function countPoliciesUsingSection($id);

Usage Example

 /**
  * 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);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::countPoliciesUsingSection