_type = self::XMLRPC_TYPE_NIL; $this->_value = null; } /** * Return the value of this object, convert the XML-RPC native nill value into a PHP NULL * * @return null */ public function getValue() { return null; } /** * Return the XML code representing the nil * * @return string */ public function saveXML() { if (! $this->_as_xml) { // The XML was not generated yet $dom = new DOMDocument('1.0', 'UTF-8'); $value = $dom->appendChild($dom->createElement('value')); $type = $value->appendChild($dom->createElement($this->_type)); $this->_as_dom = $value; $this->_as_xml = $this->_stripXmlDeclaration($dom); } return $this->_as_xml; } }