PS::xml PHP Method

xml() public method

generates the XML content for the plugin
public xml ( ) : SimpleXMLElement
return SimpleXMLElement entire XML content for the plugin
    public function xml()
    {
        if ($this->_result) {
            $positions = array(0 => 0);
            $this->_addchild($this->_result['childs'], $this->xml, $positions);
        }
        return $this->xml->getSimpleXmlElement();
    }