Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\LocationService $locationService ) | ||
addValueConstraint ( string $fieldType, string $value, string $constraint ) | Adds a validator to the stored field. | |
createContent ( string $field, mixed $value ) | Creates a content and publishes it. | |
createContentOfThisType ( $field = null, $value = null ) | ||
createContentOfThisTypeWithProperties ( $fieldType, Behat\Gherkin\Node\TableNode $properties, $name = null ) | ||
createContentTypeWithFieldType ( $fieldType, $name = null ) | ||
createContentTypeWithRequiredFieldType ( $fieldType, $name = null ) | ||
createField ( string $fieldType, string $name = null, boolean $required = false ) | Creates a fieldtype ans stores it for later use. | |
getFieldContentState ( ) | ||
getFieldTypeInternalIdentifier ( string $identifier ) : string | Getter method for fieldtype internal identifier. | |
getFieldValidator ( string $field ) : string | Getter method for the validator mappings. | |
getThisContentId ( ) : integer | Get the content id for the published content. | |
getThisContentName ( string $language = self::DEFAULT_LANGUAGE ) : string | Getter method for the name of the stored content. | |
getThisContentTypeName ( string $language = self::DEFAULT_LANGUAGE ) : string | Getter method for the name of the stored contenttype. | |
getThisFieldTypeIdentifier ( ) : string | Getter method for the identifier of the stored fieldtype. | |
getThisFieldTypeName ( string $language = self::DEFAULT_LANGUAGE ) : string | Getter method for the name of the stored fieldtype. | |
setFieldContentState ( integer $stateFlag, string $field = null, mixed $value = null ) | Executes necessary operations to guarantee a given state, recursive function that calls it self to make sure prerequisites are met. |
Метод | Описание | |
---|---|---|
associateFieldToContentType ( ) | Associates the stored fieldtype to the stored contenttype. | |
createAndPublishContent ( $field, $value ) | Creates and publishes the content with a given field and based on the internal ContentType. | |
createContentType ( ) | Creates an instance of a contenttype and stores it for later publishing. | |
getActualFieldPosition ( ) | Getter method for the position of the field, relative to other possible fields. | |
publishContentType ( ) | Publishes the stored contenttype. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\LocationService $locationService ) | ||
$repository | eZ\Publish\API\Repository\Repository | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | |
$contentService | eZ\Publish\API\Repository\ContentService | |
$locationService | eZ\Publish\API\Repository\LocationService |
public createContent ( string $field, mixed $value ) | ||
$field | string | Name of the field |
$value | mixed | Value of the field |
public createContentOfThisType ( $field = null, $value = null ) |
public createContentOfThisTypeWithProperties ( $fieldType, Behat\Gherkin\Node\TableNode $properties, $name = null ) | ||
$properties | Behat\Gherkin\Node\TableNode |
public createContentTypeWithFieldType ( $fieldType, $name = null ) |
public createContentTypeWithRequiredFieldType ( $fieldType, $name = null ) |
public getFieldTypeInternalIdentifier ( string $identifier ) : string | ||
$identifier | string | Identifier of the field |
Результат | string | internal Identifier of the field |
public getFieldValidator ( string $field ) : string | ||
$field | string | Field name |
Результат | string | field Validator name |
public getThisContentId ( ) : integer | ||
Результат | integer |
public getThisContentName ( string $language = self::DEFAULT_LANGUAGE ) : string | ||
$language | string | Language of the name |
Результат | string | Name of the contenttype |
public getThisContentTypeName ( string $language = self::DEFAULT_LANGUAGE ) : string | ||
$language | string | Language of the name |
Результат | string | Name of the contenttype |
public getThisFieldTypeIdentifier ( ) : string | ||
Результат | string | idenfier of the fieldtype |
public getThisFieldTypeName ( string $language = self::DEFAULT_LANGUAGE ) : string | ||
$language | string | Language of the name |
Результат | string | Name of the fieldtype |