Example #1
0
 /**
  * @param Element $element
  * @param \DOMElement $element
  */
 protected function appendElementToElementToSend(Element $value, \DOMElement $element)
 {
     $toSend = $value->__toSend(true);
     if ($toSend instanceof \DOMElement) {
         $element->appendChild($toSend);
     }
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }