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

publishTypeAndFields() abstract public méthode

Publishes the Type with $typeId from $sourceVersion to $targetVersion, including its fields.
abstract public publishTypeAndFields ( integer $typeId, integer $sourceStatus, integer $targetStatus )
$typeId integer
$sourceStatus integer
$targetStatus integer
    public abstract function publishTypeAndFields($typeId, $sourceStatus, $targetStatus);

Usage Example

 /**
  * Publishes the Type with $typeId from $sourceVersion to $targetVersion,
  * including its fields.
  *
  * @param int $typeId
  * @param int $sourceStatus
  * @param int $targetStatus
  */
 public function publishTypeAndFields($typeId, $sourceStatus, $targetStatus)
 {
     try {
         return $this->innerGateway->publishTypeAndFields($typeId, $sourceStatus, $targetStatus);
     } 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::publishTypeAndFields