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

countGroupsForType() abstract public méthode

Returns the number of Groups the type is assigned to.
abstract public countGroupsForType ( integer $typeId, integer $status ) : integer
$typeId integer
$status integer
Résultat integer
    public abstract function countGroupsForType($typeId, $status);

Usage Example

 /**
  * Returns the number of Groups the type is assigned to.
  *
  * @param int $typeId
  * @param int $status
  *
  * @return int
  */
 public function countGroupsForType($typeId, $status)
 {
     try {
         return $this->innerGateway->countGroupsForType($typeId, $status);
     } 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::countGroupsForType