php Zimbra-Struct-Base类(方法)实例源码

下面列出了php Zimbra-Struct-Base 类(方法)源码代码实例,从而了解它的用法。

作者: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);
 }


问题


面经


文章

微信
公众号

扫码关注公众号