/** * Constructor method for CreateDistributionList * @param string $name Name for distribution list * @param bool $dynamic If 1 (true) then create a dynamic distribution list * @param array $attrs * @return self */ public function __construct($name, $dynamic = null, array $attrs = []) { parent::__construct($attrs); $this->setProperty('name', trim($name)); if (null !== $dynamic) { $this->setProperty('dynamic', (bool) $dynamic); } }
/** * Constructor method for CreateCalendarResource * @param string $name The name * @param string $password The password * @param array $attrs * @return self */ public function __construct($name = null, $password = null, array $attrs = []) { parent::__construct($attrs); if (null !== $name) { $this->setProperty('name', trim($name)); } if (null !== $password) { $this->setProperty('password', trim($password)); } }
/** * Constructor method for ModifyAlwaysOnCluster * @param string $id Zimbra ID * @param array $attrs * @return self */ public function __construct($id, array $attrs = []) { parent::__construct($attrs); $this->setProperty('id', trim($id)); }
/** * Constructor method for CreateAlwaysOnCluster * @param string $name New server name * @param array $attrs Attributes * @return self */ public function __construct($name, array $attrs = []) { parent::__construct($attrs); $this->setProperty('name', trim($name)); }
/** * Constructor method for ModifyCos * @param string $id Zimbra ID * @param array $attrs * @return self */ public function __construct($id = null, array $attrs = []) { parent::__construct($attrs); $this->setChild('id', trim($id)); }