本文整理汇总了PHP中Element::__toSend方法的典型用法代码示例。如果您正苦于以下问题:PHP Element::__toSend方法的具体用法?PHP Element::__toSend怎么用?PHP Element::__toSend使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Element
的用法示例。
在下文中一共展示了Element::__toSend方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: appendElementToElementToSend
/**
* @param Element $element
* @param \DOMElement $element
*/
protected function appendElementToElementToSend(Element $value, \DOMElement $element)
{
$toSend = $value->__toSend(true);
if ($toSend instanceof \DOMElement) {
$element->appendChild($toSend);
}
}
示例2: __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);
}
示例3: __toSend
/**
* 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);
}
示例4: __toSend
/**
* 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);
}