eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator Class Reference

Public Member Functions

 generateHashValue (\XMLWriter $writer, $hashElementName, $hashValue)
 Generates the field type value $hashValue into the $writer creating an element with $hashElementName as its parent. More...
 

Protected Member Functions

 generateArrayValue (\XmlWriter $writer, $value, $key, $elementName= 'value')
 Generates an array value from $value. More...
 
 generateBooleanValue (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates a boolean value. More...
 
 generateFloatValue (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates a float value. More...
 
 generateHashArray (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates $value as a hash of value items. More...
 
 generateIntegerValue (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates a integer value. More...
 
 generateKeyAttribute (\XmlWriter $writer, $key=null)
 Generates a key attribute with $key as the value, if $key is not null. More...
 
 generateListArray (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates $value as a list of value items. More...
 
 generateNullValue (\XmlWriter $writer, $key=null, $elementName= 'value')
 Generates a null value. More...
 
 generateStringValue (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates a string value. More...
 
 generateValue (\XmlWriter $writer, $value, $key=null, $elementName= 'value')
 Generates $value into a serialized representation. More...
 
 isNumericArray (array $value)
 Checks if the given $value is a purely numeric array. More...
 

Member Function Documentation

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateArrayValue ( \XmlWriter  $writer,
  $value,
  $key,
  $elementName = 'value' 
)
protected

Generates an array value from $value.

Parameters
\XmlWriter$writer
array$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateBooleanValue ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates a boolean value.

Parameters
\XmlWriter$writer
boolean$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateFloatValue ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates a float value.

Parameters
\XmlWriter$writer
float$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateHashArray ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates $value as a hash of value items.

Parameters
\XmlWriter$writer
array$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateArrayValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateHashValue ( \XMLWriter  $writer,
  $hashElementName,
  $hashValue 
)

Generates the field type value $hashValue into the $writer creating an element with $hashElementName as its parent.

Parameters
\XmlWriter$writer
string$hashElementName
mixed$hashValue
eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateIntegerValue ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates a integer value.

Parameters
\XmlWriter$writer
int$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateListArray ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates $value as a list of value items.

Parameters
\XmlWriter$writer
array$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateArrayValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateNullValue ( \XmlWriter  $writer,
  $key = null,
  $elementName = 'value' 
)
protected

Generates a null value.

Parameters
\XmlWriter$writer
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateStringValue ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected

Generates a string value.

Parameters
\XmlWriter$writer
string$value
string | null$key
string$elementName

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateValue().

eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateValue ( \XmlWriter  $writer,
  $value,
  $key = null,
  $elementName = 'value' 
)
protected
eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::isNumericArray ( array  $value)
protected

Checks if the given $value is a purely numeric array.

Parameters
array$value
Returns
boolean

Referenced by eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator\generateArrayValue().


The documentation for this class was generated from the following file: