This method allows to update existing triggers. 此方法用于更新目前的触发器。

    Parameters 参数

    (object/array) Trigger properties to be updated. (object/array)需要更新的触发器属性。 The property must be defined for each trigger, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged. triggerid属性必须在每个应用集中已定义,其他所有属性为可选项。只有传递过去的属性会被更新,其他所有属性仍然保持不变。 Additionally to the the method accepts the following parameters. 除standard trigger properties之外,该方法接受以下参数。

    The trigger expression has to be given in its expanded form. 指定的触发器表达式必须为展开式。

    Examples 范例

    Enabling a trigger 启用触发器

    Enable a trigger, that is, set its status to 0. 启用触发器,即将其状态设置为0。

    Request 请求:

    Response 响应:

    Replacing triggers tags 替换触发器标签

    Request 请求:

    Response 响应:

    Source 源码

    CTrigger::update() in frontends/php/include/classes/api/services/CTrigger.php. CTrigger::update()方法可在frontends/php/include/classes/api/services/CTrigger.php中参考。