本文整理汇总了PHP中Zimbra\Struct\Base类的典型用法代码示例。如果您正苦于以下问题:PHP Base类的具体用法?PHP Base怎么用?PHP Base使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Base类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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);
}
});
}
示例2: __construct
/**
* 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);
}
}
示例3: toXml
/**
* Method returning the xml representation of this class
*
* @param string $name
* @return SimpleXML
*/
public function toXml($name = 'attach')
{
return parent::toXml($name);
}
示例4: toXml
/**
* Method returning the xml representative this class
*
* @return SimpleXML
*/
public function toXml($name = 'phone')
{
return parent::toXml($name);
}
示例5: toXml
/**
* Method returning the xml representative this class
*
* @param string $name
* @return SimpleXML
*/
public function toXml($name = 'search')
{
return parent::toXml($name);
}
示例6: toXml
/**
* Method returning the xml representation of this class
*
* @return SimpleXML
*/
public function toXml($name = 'authToken')
{
return parent::toXml($name);
}