/** * @param string $wsdlType The type as represented by the SOAP client. */ public function __construct($wsdlType) { $this->wsdlType = $wsdlType; // The first line of the WSDL type contains the type name and restriction. Extract them. $lines = $this->getWsdlLines(); $firstLineElements = explode(" ", $lines[0]); $this->restriction = $firstLineElements[0]; $this->name = $firstLineElements[1]; parent::__construct(); }
/** * Construct an Xml element * * @param string $name name of the node * @param string $value value of the node * @param array $attributes * @param string $namespace * @return string A copy of $data in XML format */ function __construct($name = null, $value = null, $attributes = array(), $namespace = false) { parent::__construct($name, $value, $namespace); $this->addAttribute($attributes); }