JAXLXml::cnode PHP Method

cnode() public method

Append child node.
public cnode ( JAXLXml $node ) : JAXLXml
$node JAXLXml
return JAXLXml
    public function cnode($node)
    {
        $node->parent =& $this->rover;
        $this->rover->children[] =& $node;
        $this->rover =& $node;
        return $this;
    }

Usage Example

コード例 #1
0
 public function get_publish_item_pkt($service, $node, $item)
 {
     $child = new JAXLXml('pubsub', NS_PUBSUB);
     $child->c('publish', null, array('node' => $node));
     $child->cnode($item);
     return $this->get_iq_pkt($service, $child);
 }