此方法允许更新现有的全局宏。
Description
object usermacro.updateglobal(object/array **globalMacros**)
This method allows to update existing global macros.
参数
(object/array)
要更新的。
(object/array)
Global macro properties to be updated.
The globalmacroid
property must be defined for each global macro, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
返回值
返回包含“globalmacroids”属性下更新的全局宏的ID的对象。
Return values
(object)
Returns an object containing the IDs of the updated global macros under the globalmacroids
property.
Examples
更改全局宏的值
Changing the value of a global macro
Change the value of a global macro to “public”.
Request:
Response:
{
"jsonrpc": "2.0",
"1"
]
},
"id": 1
}
来源
CUserMacro::updateGlobal() in frontends/php/include/classes/api/services/CUserMacro.php.