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

updateType() abstract public méthode

Update a type with $updateStruct.
abstract public updateType ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct )
$typeId mixed
$status integer
$updateStruct eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct
    public abstract function updateType($typeId, $status, UpdateStruct $updateStruct);

Usage Example

 /**
  * @param mixed $typeId
  * @param int $status
  * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $contentType
  *
  * @return Type
  */
 public function update( $typeId, $status, UpdateStruct $contentType )
 {
     $this->contentTypeGateway->updateType(
         $typeId, $status, $contentType
     );
     return $this->load(
         $typeId, $status
     );
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::updateType