Пример #1
0
 /**
  * @return mixed|void
  */
 protected function toXml()
 {
     $xmlCodec = new XmlCodec();
     return $xmlCodec->encode($this);
 }
Пример #2
0
 /**
  * Encodes an associative array as an XML document.
  *
  * @param $object
  *      the object to be encoded as an XML document.
  *
  * @return string
  *      a string containing the XML document.
  */
 private static function xmlEncode($object)
 {
     return XmlCodec::encode($object);
 }