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

insertGroupAssignment() abstract public méthode

Insert assignment of $typeId to $groupId.
abstract public insertGroupAssignment ( mixed $typeId, integer $status, mixed $groupId )
$typeId mixed
$status integer
$groupId mixed
    public abstract function insertGroupAssignment($typeId, $status, $groupId);

Usage Example

 /**
  * Link a content type group with a content type
  *
  * @param mixed $groupId
  * @param mixed $contentTypeId
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If group or type with provided status is not found
  * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException If type is already part of group
  * @todo Above throws are not implemented
  */
 public function link( $groupId, $contentTypeId, $status )
 {
     $this->contentTypeGateway->insertGroupAssignment(
         $groupId, $contentTypeId, $status
     );
     // @todo FIXME: What is to be returned?
     return true;
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::insertGroupAssignment