Наследование: implements eZ\Publish\API\Repository\ContentTypeService, implements eZ\Publish\Core\REST\Client\Sessionable
 /**
  * Fetches and returns the field definitions contained in the list
  *
  * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
  */
 public function getFieldDefinitions()
 {
     $fieldDefinitions = array();
     foreach ($this->fieldDefinitionReferences as $reference) {
         $fieldDefinitions[] = $this->contentTypeService->loadFieldDefinition($reference);
     }
     return $fieldDefinitions;
 }
 /**
  * Fetches and returns the ContentTypeGroups contained in the list
  *
  * @return \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]
  */
 public function getContentTypeGroups()
 {
     $contentTypeGroups = array();
     foreach ($this->contentTypeGroupReferences as $reference) {
         $contentTypeGroups[] = $this->contentTypeService->loadContentTypeGroup($reference);
     }
     return $contentTypeGroups;
 }
Пример #3
0
 /**
  * This method returns the content type field definitions from this type
  *
  * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
  */
 public function getFieldDefinitions()
 {
     $fieldDefinitionList = $this->contentTypeService->loadFieldDefinitionList($this->fieldDefinitionListReference);
     return $fieldDefinitionList->getFieldDefinitions();
 }