/**
  * Get Content Type Service
  *
  * Get service object to perform operations on Content Type objects and it's aggregate members.
  * ( Group, Field & FieldCategory )
  *
  * @return \eZ\Publish\API\Repository\ContentTypeService
  */
 public function getContentTypeService()
 {
     if ($this->contentTypeService !== null) {
         return $this->contentTypeService;
     }
     $this->contentTypeService = new ContentTypeService($this, $this->persistenceHandler->contentTypeHandler(), $this->getDomainMapper(), $this->serviceSettings['contentType']);
     return $this->contentTypeService;
 }
示例#2
0
 /**
  * Get RelationProcessor
  *
  * @access private Internal service for the Core Services
  *
  * @todo Move out from this & other repo instances when services becomes proper services in DIC terms using factory.
  *
  * @return \eZ\Publish\Core\Repository\DomainMapper
  */
 protected function getDomainMapper()
 {
     if ($this->domainMapper !== null) {
         return $this->domainMapper;
     }
     $this->domainMapper = new DomainMapper($this, $this->persistenceHandler->contentTypeHandler(), $this->persistenceHandler->contentLanguageHandler());
     return $this->domainMapper;
 }
示例#3
0
 /**
  * Get RelationProcessor.
  *
  *
  * @todo Move out from this & other repo instances when services becomes proper services in DIC terms using factory.
  *
  * @return \eZ\Publish\Core\Repository\Helper\DomainMapper
  */
 protected function getDomainMapper()
 {
     if ($this->domainMapper !== null) {
         return $this->domainMapper;
     }
     $this->domainMapper = new Helper\DomainMapper($this->persistenceHandler->contentHandler(), $this->persistenceHandler->locationHandler(), $this->persistenceHandler->contentTypeHandler(), $this->persistenceHandler->contentLanguageHandler(), $this->getFieldTypeRegistry());
     return $this->domainMapper;
 }