eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::countTypesInGroup PHP Méthode

countTypesInGroup() abstract public méthode

Returns the number of types in a certain group.
abstract public countTypesInGroup ( integer $groupId ) : integer
$groupId integer
Résultat integer
    public abstract function countTypesInGroup($groupId);

Usage Example

 /**
  * Returns the number of types in a certain group.
  *
  * @param int $groupId
  *
  * @return int
  */
 public function countTypesInGroup($groupId)
 {
     try {
         return $this->innerGateway->countTypesInGroup($groupId);
     } 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\Type\Gateway::countTypesInGroup