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

countContentObjectsInSection() abstract public method

Counts the number of content objects assigned to section with $id.
abstract public countContentObjectsInSection ( integer $id ) : integer
$id integer
return integer
    public abstract function countContentObjectsInSection($id);

Usage Example

 /**
  * Counts the number of content objects assigned to section with $id.
  *
  * @param int $id
  *
  * @return int
  */
 public function countContentObjectsInSection($id)
 {
     try {
         return $this->innerGateway->countContentObjectsInSection($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::countContentObjectsInSection