/** * @param Element $element * @param \DOMElement $element */ protected function appendElementToElementToSend(Element $value, \DOMElement $element) { $toSend = $value->__toSend(true); if ($toSend instanceof \DOMElement) { $element->appendChild($toSend); } }
/** * Overrides methods in order to set the values * @param bool $asDomElement returns elements as a DOMElement or as a string * @return string */ protected function __toSend($asDomElement = false) { $this->setValue(array($this->getUsernameToken(), $this->getTimestamp())); return parent::__toSend($asDomElement = false); }
/** * Overrides method in order to add username, password and created values if they are set * @param bool $asDomElement returns elements as a DOMElement or as a string * @return string */ protected function __toSend($asDomElement = false) { $this->setValue(array($this->getUsername(), $this->getPassword(), $this->getCreated(), $this->getNonce())); return parent::__toSend($asDomElement); }
/** * Overrides method in order to add created and expires values if they are set * @param bool $asDomElement returns elements as a DOMElement or as a string * @return string */ protected function __toSend($asDomElement = false) { $this->setValue(array($this->getCreated(), $this->getExpires())); return parent::__toSend($asDomElement); }