Property | Type | Description | |
---|---|---|---|
$formatOutput | boolean | If set to true, output will be formatted and indented. | |
$stack | array | Use to check if it is OK to start / close the requested element in the current state. |
Method | Description | |
---|---|---|
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. | |
reset ( ) | Reset output visitor to a virgin state. | |
serializeBool ( boolean $boolValue ) : mixed | Serializes a boolean value. | |
setFormatOutput ( $formatOutput ) | ||
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 ) | Start value element. |
Method | Description | |
---|---|---|
checkEnd ( string $type, mixed $data ) | Check close / end operation. | |
checkEndAttribute ( mixed $data ) | Check end attribute. | |
checkEndDocument ( mixed $data ) | Check end document. | |
checkEndHashElement ( mixed $data ) | Check end hash element. | |
checkEndList ( mixed $data ) | Check end list. | |
checkEndObjectElement ( mixed $data ) | Check end object element. | |
checkEndValueElement ( mixed $data ) | Check end value element. | |
checkStart ( string $type, mixed $data, array $validParents ) | Check close / end operation. | |
checkStartAttribute ( mixed $data ) | Check start attribute. | |
checkStartDocument ( mixed $data ) | Check start document. | |
checkStartHashElement ( mixed $data ) | Check start hash element. | |
checkStartList ( mixed $data ) | Check start list. | |
checkStartObjectElement ( mixed $data ) | Check start object element. | |
checkStartValueElement ( mixed $data ) | Check start value element. | |
generateMediaType ( string $name, string $type ) : string | Generates a media type from $name and $type. |
protected checkEndAttribute ( mixed $data ) | ||
$data | mixed |
protected checkEndDocument ( mixed $data ) | ||
$data | mixed |
protected checkEndHashElement ( mixed $data ) | ||
$data | mixed |
protected checkEndObjectElement ( mixed $data ) | ||
$data | mixed |
protected checkEndValueElement ( mixed $data ) | ||
$data | mixed |
protected checkStartAttribute ( mixed $data ) | ||
$data | mixed |
protected checkStartDocument ( mixed $data ) | ||
$data | mixed |
protected checkStartHashElement ( mixed $data ) | ||
$data | mixed |
protected checkStartList ( mixed $data ) | ||
$data | mixed |
protected checkStartObjectElement ( mixed $data ) | ||
$data | mixed |
protected checkStartValueElement ( mixed $data ) | ||
$data | mixed |
abstract public endAttribute ( string $name ) | ||
$name | string |
abstract public endDocument ( mixed $data ) : string | ||
$data | mixed | |
return | string |
abstract public endHashElement ( string $name ) | ||
$name | string |
abstract public endObjectElement ( string $name ) | ||
$name | string |
abstract public endValueElement ( string $name ) | ||
$name | string |
abstract public generateFieldTypeHash ( string $hashElementName, mixed $hashValue ) | ||
$hashElementName | string | |
$hashValue | mixed |
abstract public getMediaType ( string $name ) : string | ||
$name | string | |
return | string |
abstract public serializeBool ( boolean $boolValue ) : mixed | ||
$boolValue | boolean | |
return | mixed |
abstract public startAttribute ( string $name, string $value ) | ||
$name | string | |
$value | string |
abstract public startDocument ( mixed $data ) | ||
$data | mixed |
abstract public startHashElement ( string $name ) | ||
$name | string |
abstract public startObjectElement ( string $name, string $mediaTypeName = null ) | ||
$name | string | |
$mediaTypeName | string |
abstract public startValueElement ( string $name, string $value ) | ||
$name | string | |
$value | string |
protected bool $formatOutput | ||
return | boolean |
protected array $stack | ||
return | array |