PHP Класс eZ\Publish\Core\REST\Common\Output\Generator\Xml

Наследование: extends eZ\Publish\Core\REST\Common\Output\Generator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$hashGenerator eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator Generator for field type hash values.
$isEmpty boolean Keeps track if the document received some content.
$xmlWriter XMLWriter XMLWriter.

Открытые методы

Метод Описание
__construct ( FieldTypeHashGenerator $hashGenerator )
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 ) : string 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.

Описание методов

__construct() публичный Метод

public __construct ( FieldTypeHashGenerator $hashGenerator )
$hashGenerator eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator

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 ) : string
$boolValue boolean
Результат string

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

Описание свойств

$hashGenerator защищенное свойство

Generator for field type hash values.
protected FieldTypeHashGenerator,eZ\Publish\Core\REST\Common\Output\Generator\Xml $hashGenerator
Результат eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator

$isEmpty защищенное свойство

Keeps track if the document received some content.
protected bool $isEmpty
Результат boolean

$xmlWriter защищенное свойство

XMLWriter.
protected XMLWriter $xmlWriter
Результат XMLWriter