/** * Constructor method for AccountACEInfo * @param RetentionPolicy $retentionPolicy Retention policy * @param TagActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $l * @param string $rgb * @param int $color * @param string $name * @param string $f * @param string $t * @param string $tn * @return self */ public function __construct(RetentionPolicy $retentionPolicy = null, TagActionOp $op, $id = null, $tcon = null, $tag = null, $l = null, $rgb = null, $color = null, $name = null, $f = null, $t = null, $tn = null) { parent::__construct($op, $id, $tcon, $tag, $l, $rgb, $color, $name, $f, $t, $tn); if ($retentionPolicy instanceof RetentionPolicy) { $this->setChild('retentionPolicy', $retentionPolicy); } }
/** * Constructor method for FolderActionSelector * @param FolderActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $folder * @param string $rgb * @param int $color * @param string $name * @param string $flags * @param string $tags * @param string $tn * @param ActionGrantSelector $grant * @param FolderActionSelectorAcl $acl * @param RetentionPolicy $retentionPolicy * @param bool $recursive * @param string $url * @param bool $excludeFreeBusy * @param string $zid * @param string $gt * @param string $view * @param string $tn * @param int $numDays * @return self */ public function __construct(FolderActionOp $op, $id = null, $tcon = null, $tag = null, $folder = null, $rgb = null, $color = null, $name = null, $flags = null, $tags = null, $tagNames = null, ActionGrantSelector $grant = null, FolderActionSelectorAcl $acl = null, RetentionPolicy $retentionPolicy = null, $recursive = null, $url = null, $excludeFreeBusy = null, $zid = null, $gt = null, $view = null, $numDays = null) { parent::__construct($op, $id, $tcon, $tag, $folder, $rgb, $color, $name, $flags, $tags, $tagNames); if ($grant instanceof ActionGrantSelector) { $this->setChild('grant', $grant); } if ($acl instanceof FolderActionSelectorAcl) { $this->setChild('acl', $acl); } if ($retentionPolicy instanceof RetentionPolicy) { $this->setChild('retentionPolicy', $retentionPolicy); } if (null !== $recursive) { $this->setProperty('recursive', (bool) $recursive); } if (null !== $url) { $this->setProperty('url', trim($url)); } if (null !== $excludeFreeBusy) { $this->setProperty('excludeFreeBusy', (bool) $excludeFreeBusy); } if (null !== $zid) { $this->setProperty('zid', trim($zid)); } if (null !== $gt) { $this->setProperty('gt', trim($gt)); } if (null !== $view) { $this->setProperty('view', trim($view)); } if (null !== $numDays) { $this->setProperty('numDays', (int) $numDays); } }
/** * Constructor method for AccountACEInfo * @param ContactActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $folder * @param string $rgb * @param int $color * @param string $name * @param string $flags * @param string $tags * @param string $tagNames * @param array $attrs * @return self */ public function __construct(ContactActionOp $op, $id = null, $tcon = null, $tag = null, $folder = null, $rgb = null, $color = null, $name = null, $flags = null, $tags = null, $tagNames = null, array $attrs = []) { parent::__construct($op, $id, $tcon, $tag, $folder, $rgb, $color, $name, $flags, $tags, $tagNames); $this->setAttrs($attrs); $this->on('before', function (ActionSelector $sender) { if ($sender->getAttrs()->count()) { $sender->setChild('a', $sender->getAttrs()->all()); } }); }
/** * Constructor method for DocumentActionSelector * @param DocumentActionOp $op * @param DocumentActionGrant $grant Used for "grant" operation * @param string $zid Zimbra ID of the grant to revoke (Used for "!grant" operation) * @param string $id * @param string $tcon * @param int $tag * @param string $l * @param string $rgb * @param int $color * @param string $name * @param string $f * @param string $t * @param string $tn * @return self */ public function __construct(DocumentActionOp $op, DocumentActionGrant $grant = null, $zid = null, $id = null, $tcon = null, $tag = null, $l = null, $rgb = null, $color = null, $name = null, $f = null, $t = null, $tn = null) { parent::__construct($op, $id, $tcon, $tag, $l, $rgb, $color, $name, $f, $t, $tn); if ($grant instanceof DocumentActionGrant) { $this->setChild('grant', $grant); } if (null !== $zid) { $this->setProperty('zid', trim($zid)); } }
/** * Constructor method for AccountACEInfo * @param ContactActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $l * @param string $rgb * @param int $color * @param string $name * @param string $f * @param string $t * @param string $tn * @param array $a * @return self */ public function __construct(ContactActionOp $op, $id = null, $tcon = null, $tag = null, $l = null, $rgb = null, $color = null, $name = null, $f = null, $t = null, $tn = null, array $a = array()) { parent::__construct($op, $id, $tcon, $tag, $l, $rgb, $color, $name, $f, $t, $tn); $this->_a = new TypedSequence('Zimbra\\Mail\\Struct\\NewContactAttr', $a); $this->on('before', function (ActionSelector $sender) { if ($sender->a()->count()) { $sender->child('a', $sender->a()->all()); } }); }
/** * Constructor method for AccountACEInfo * @param ItemActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $l * @param string $rgb * @param int $color * @param string $name * @param string $f * @param string $t * @param string $tn * @param string $content * @param string $pos * @return self */ public function __construct(ItemActionOp $op, $id = null, $tcon = null, $tag = null, $l = null, $rgb = null, $color = null, $name = null, $f = null, $t = null, $tn = null, $content = null, $pos = null) { parent::__construct($op, $id, $tcon, $tag, $l, $rgb, $color, $name, $f, $t, $tn); if (null !== $content) { $this->property('content', trim($content)); } if (null !== $pos) { $this->property('pos', trim($pos)); } }
/** * Constructor method for AccountACEInfo * @param MsgActionOp $op * @param string $id * @param string $tcon * @param int $tag * @param string $l * @param string $rgb * @param int $color * @param string $name * @param string $f * @param string $t * @param string $tn * @return self */ public function __construct(MsgActionOp $op, $id = null, $tcon = null, $tag = null, $l = null, $rgb = null, $color = null, $name = null, $f = null, $t = null, $tn = null) { parent::__construct($op, $id, $tcon, $tag, $l, $rgb, $color, $name, $f, $t, $tn); }