该方法允许更新现有的值映射。
Description
object valuemap.update(object/array **valuemaps**)
This method allows to update existing value maps.
参数
(object/array)
要更新的。
(object/array)
Value map properties to be updated.
The valuemapid
property must be defined for each value map, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
返回值
返回一个对象,它包含valuemapids
属性下更新的值映射的ID。
Return values
(object)
Returns an object containing the IDs of the updated value maps under the property.
Examples
更改值映射名称
Changing value map name
Change value map name to “Device status”.
Request:
Response:
Changing mappings for one value map.
Request:
来源
CValueMap::update() in frontends/php/include/classes/api/services/CValueMap.php.