eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::countContentObjectsInSection PHP 메소드

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

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

Usage Example

예제 #1
0
 /**
  * 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