PHP 클래스 eZ\Publish\Core\REST\Common\Output\Generator\Json

상속: extends eZ\Publish\Core\REST\Common\Output\Generator
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$fieldTypeHashGenerator eZ\Publish\Core\REST\Common\Output\Generator\Json\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;.

공개 메소드들

메소드 설명
__construct ( FieldTypeHashGenerator $fieldTypeHashGenerator )
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.

보호된 메소드들

메소드 설명
convertArrayObjects ( mixed $data ) : mixed Convert ArrayObjects to arrays.

메소드 상세

__construct() 공개 메소드

public __construct ( FieldTypeHashGenerator $fieldTypeHashGenerator )
$fieldTypeHashGenerator eZ\Publish\Core\REST\Common\Output\Generator\Json\FieldTypeHashGenerator

convertArrayObjects() 보호된 메소드

Recursively convert all ArrayObjects into arrays in the full data structure.
protected convertArrayObjects ( mixed $data ) : mixed
$data mixed
리턴 mixed

endAttribute() 공개 메소드

End attribute.
public endAttribute ( string $name )
$name string

endDocument() 공개 메소드

Returns the generated document as a string.
public endDocument ( mixed $data ) : string
$data mixed
리턴 string

endHashElement() 공개 메소드

End hash element.
public endHashElement ( string $name )
$name string

endList() 공개 메소드

End list.
public endList ( string $name )
$name string

endObjectElement() 공개 메소드

End object element.
public endObjectElement ( string $name )
$name string

endValueElement() 공개 메소드

End value element.
public endValueElement ( string $name )
$name string

generateFieldTypeHash() 공개 메소드

Generates a generic representation of the scalar, hash or list given in $hashValue into the document, using an element of $hashElementName as its parent.
public generateFieldTypeHash ( string $hashElementName, mixed $hashValue )
$hashElementName string
$hashValue mixed

getMediaType() 공개 메소드

Get media type.
public getMediaType ( string $name ) : string
$name string
리턴 string

isEmpty() 공개 메소드

Returns if the document is empty or already contains data.
public isEmpty ( ) : boolean
리턴 boolean

serializeBool() 공개 메소드

Serializes a boolean value.
public serializeBool ( boolean $boolValue ) : boolean
$boolValue boolean
리턴 boolean

startAttribute() 공개 메소드

Start attribute.
public startAttribute ( string $name, string $value )
$name string
$value string

startDocument() 공개 메소드

Start document.
public startDocument ( mixed $data )
$data mixed

startHashElement() 공개 메소드

Start hash element.
public startHashElement ( string $name )
$name string

startList() 공개 메소드

Start list.
public startList ( string $name )
$name string

startObjectElement() 공개 메소드

Start object element.
public startObjectElement ( string $name, string $mediaTypeName = null )
$name string
$mediaTypeName string

startValueElement() 공개 메소드

Start value element.
public startValueElement ( string $name, string $value, array $attributes = [] )
$name string
$value string
$attributes array

프로퍼티 상세

$fieldTypeHashGenerator 보호되어 있는 프로퍼티

Generator for field type hash values.
protected FieldTypeHashGenerator,eZ\Publish\Core\REST\Common\Output\Generator\Json $fieldTypeHashGenerator
리턴 eZ\Publish\Core\REST\Common\Output\Generator\Json\FieldTypeHashGenerator

$isEmpty 보호되어 있는 프로퍼티

Keeps track if the document is still empty.
protected bool $isEmpty
리턴 boolean

$json 보호되어 있는 프로퍼티

Data structure which is build during visiting;.
protected array $json
리턴 array