eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::generateHashValue PHP Method

generateHashValue() public method

Generates the field type value $hashValue into the $writer creating an element with $hashElementName as its parent.
public generateHashValue ( XMLWriter $writer, string $hashElementName, mixed $hashValue )
$writer XMLWriter
$hashElementName string
$hashValue mixed
    public function generateHashValue(\XMLWriter $writer, $hashElementName, $hashValue)
    {
        $this->generateValue($writer, $hashValue, null, $hashElementName);
    }

Usage Example

Beispiel #1
0
 /**
  * Generates a generic representation of the scalar, hash or list given in
  * $hashValue into the document, using an element of $hashElementName as
  * its parent
  *
  * @param string $hashElementName
  * @param mixed $hashValue
  */
 public function generateFieldTypeHash($hashElementName, $hashValue)
 {
     $this->hashGenerator->generateHashValue($this->xmlWriter, $hashElementName, $hashValue);
 }