getContentCount() абстрактный публичный Метод

Returns the number of objects which are in this state.
abstract public getContentCount ( mixed $stateId ) : integer
$stateId mixed
Результат integer
 /**
  * Returns the number of objects which are in this state.
  *
  * @param mixed $stateId
  *
  * @return int
  */
 public function getContentCount($stateId)
 {
     try {
         return $this->innerGateway->getContentCount($stateId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Пример #2
0
 /**
  * Returns the number of objects which are in this state
  *
  * @param mixed $stateId
  *
  * @return int
  */
 public function getContentCount($stateId)
 {
     return $this->objectStateGateway->getContentCount($stateId);
 }