eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\ExceptionConversion::countPoliciesUsingSection PHP Méthode

countPoliciesUsingSection() public méthode

Counts the number of role policies using section with $id in their limitations.
public countPoliciesUsingSection ( integer $id ) : integer
$id integer
Résultat integer
    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);
        }
    }