作者:zimbra-ap
项目:struc
public function __construct(array $attrs = [])
{
parent::__construct();
$this->setAttrs($attrs);
$this->on('before', function (Base $sender) {
$attrs = $sender->getAttrs();
if (!empty($attrs)) {
$sender->setProperty('attrs', $attrs);
}
});
}
作者:zimbra-ap
项目:mai
/**
* Constructor method for AttachSpec
* @param bool $optional Optional
* @return self
*/
public function __construct($optional = null)
{
parent::__construct();
if (null !== $optional) {
$this->setProperty('optional', (bool) $optional);
}
}
作者:nucleus-b
项目:zimbra-ap
/**
* Method returning the xml representation of this class
*
* @param string $name
* @return SimpleXML
*/
public function toXml($name = 'attach')
{
return parent::toXml($name);
}
作者:nucleus-b
项目:zimbra-ap
/**
* Method returning the xml representative this class
*
* @return SimpleXML
*/
public function toXml($name = 'phone')
{
return parent::toXml($name);
}
作者:zimbra-ap
项目:mai
/**
* Method returning the xml representative this class
*
* @param string $name
* @return SimpleXML
*/
public function toXml($name = 'search')
{
return parent::toXml($name);
}
作者:zimbra-ap
项目:accoun
/**
* Method returning the xml representation of this class
*
* @return SimpleXML
*/
public function toXml($name = 'authToken')
{
return parent::toXml($name);
}