コード例 #1
0
 /**
  * Instantiates a new content create struct object
  *
  * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType
  * @param string $mainLanguageCode
  *
  * @return \eZ\Publish\API\Repository\Values\Content\ContentCreateStruct
  */
 public function newContentCreateStruct(ContentType $contentType, $mainLanguageCode)
 {
     return new ContentCreateStructStub(array('contentType' => $contentType, 'mainLanguageCode' => $mainLanguageCode, 'modificationDate' => new \DateTime(), 'remoteId' => md5(uniqid(__CLASS__, true)), 'ownerId' => $this->repository->getCurrentUser()->id));
 }