Property | Type | Description | |
---|---|---|---|
$fieldTypeHashGenerator | Generator for field type hash values. | ||
$isEmpty | boolean | Keeps track if the document is still empty. | |
$json | array | Data structure which is build during visiting;. |
Method | Description | |
---|---|---|
__construct ( |
||
endAttribute ( string $name ) | End attribute. | |
endDocument ( mixed $data ) : string | End document. | |
endHashElement ( string $name ) | End hash element. | |
endList ( string $name ) | End list. | |
endObjectElement ( string $name ) | End object element. | |
endValueElement ( string $name ) | End value element. | |
generateFieldTypeHash ( string $hashElementName, mixed $hashValue ) | Generates a generic representation of the scalar, hash or list given in $hashValue into the document, using an element of $hashElementName as its parent. | |
getMediaType ( string $name ) : string | Get media type. | |
isEmpty ( ) : boolean | Returns if the document is empty or already contains data. | |
serializeBool ( boolean $boolValue ) : boolean | Serializes a boolean value. | |
startAttribute ( string $name, string $value ) | Start attribute. | |
startDocument ( mixed $data ) | Start document. | |
startHashElement ( string $name ) | Start hash element. | |
startList ( string $name ) | Start list. | |
startObjectElement ( string $name, string $mediaTypeName = null ) | Start object element. | |
startValueElement ( string $name, string $value, array $attributes = [] ) | Start value element. |
Method | Description | |
---|---|---|
convertArrayObjects ( mixed $data ) : mixed | Convert ArrayObjects to arrays. |
public __construct ( |
||
$fieldTypeHashGenerator |
protected convertArrayObjects ( mixed $data ) : mixed | ||
$data | mixed | |
return | mixed |
public endDocument ( mixed $data ) : string | ||
$data | mixed | |
return | string |
public endHashElement ( string $name ) | ||
$name | string |
public endObjectElement ( string $name ) | ||
$name | string |
public endValueElement ( string $name ) | ||
$name | string |
public generateFieldTypeHash ( string $hashElementName, mixed $hashValue ) | ||
$hashElementName | string | |
$hashValue | mixed |
public getMediaType ( string $name ) : string | ||
$name | string | |
return | string |
public serializeBool ( boolean $boolValue ) : boolean | ||
$boolValue | boolean | |
return | boolean |
public startAttribute ( string $name, string $value ) | ||
$name | string | |
$value | string |
public startHashElement ( string $name ) | ||
$name | string |
public startObjectElement ( string $name, string $mediaTypeName = null ) | ||
$name | string | |
$mediaTypeName | string |
protected FieldTypeHashGenerator,eZ\Publish\Core\REST\Common\Output\Generator\Json $fieldTypeHashGenerator | ||
return |
protected bool $isEmpty | ||
return | boolean |
protected array $json | ||
return | array |