Horde_Xml_Element::__construct PHP Method

__construct() public method

Horde_Xml_Element constructor.
public __construct ( $element )
    public function __construct($element)
    {
        $this->_element = $element;
        $this->__wakeup();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Constructor. Do basic error checking on the resposne.
  *
  * @param DOMElement $element The DOM element we're encapsulating.
  */
 public function __construct($element = null)
 {
     parent::__construct($element);
     if ($this['stat'] != 'ok') {
         throw new Horde_Service_Scribd_Exception($this->error['message'], $this->error['code']);
     }
 }
All Usage Examples Of Horde_Xml_Element::__construct