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

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
    public abstract function countRoleAssignmentsUsingSection($id);

Usage Example

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