eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::create PHP 메소드

create() 추상적인 공개 메소드

Creates a new location in given $parentNode.
abstract public create ( eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct, array $parentNode ) : eZ\Publish\SPI\Persistence\Content\Location
$createStruct eZ\Publish\SPI\Persistence\Content\Location\CreateStruct
$parentNode array
리턴 eZ\Publish\SPI\Persistence\Content\Location
    public abstract function create(CreateStruct $createStruct, array $parentNode);

Usage Example

예제 #1
0
 /**
  * Creates a new location rooted at $location->parentId.
  *
  * @param \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Location
  */
 public function create(CreateStruct $createStruct)
 {
     $parentNodeData = $this->locationGateway->getBasicNodeData($createStruct->parentId);
     $locationStruct = $this->locationGateway->create($createStruct, $parentNodeData);
     $this->locationGateway->createNodeAssignment($createStruct, $parentNodeData['node_id'], LocationGateway::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP);
     return $locationStruct;
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::create