龙虎赌博

This is the documentation page for an unsupported version of 龙虎赌博.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

template.massremove

説明

object template.massremove(object parameters)

このメソッドで、関连するオブジェクトを复数のテンプレートから削除できます。

このメソッドはAdminおよびSuper adminユーザータイプでのみ使用できます。 メソッドを呼び出す権限は、ユーザーロール设定で取り消すことができます。 詳細についてはユーザーの役割を参照してください。

パラメータ

(object) 更新するテンプレートの ID と削除する必要があるオブジェクトを含むパラメーター。

パラメータ タイプ 説明
templateids
(必须)
string/array 更新するテンプレートの ID。
groupids string/array 特定のテンプレートを削除するホスト グループ。
macros string/array 指定されたテンプレートから削除するユーザー マクロ。
templateids_clear string/array 指定されたテンプレート (上流) からリンクを解除してクリアするテンプレート。
templateids_link string/array 指定されたテンプレート (上流) からリンクを解除するテンプレート。

戻り値

(object) templateids プロパティの下で更新されたテンプレートの ID を含むオブジェクトを返します。

グループからのテンプレートの削除

グループ"2"から 2 つのテンプレートを削除します

Request:

{
           "jsonrpc": "2.0",
           "method": "template.massremove",
           "params": {
               "templateids": [
                   "10085",
                   "10086"
               ],
               "groupids": "2"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "templateids": [
                   "10085",
                   "10086"
               ]
           },
           "id": 1
       }

Unlinking templates from a host

Unlink templates "10106" and "10104" from template "10085".

Request:

{
           "jsonrpc": "2.0",
           "method": "template.massremove",
           "params": {
               "templateids": "10085",
               "templateids_link": [
                   "10106",
                   "10104"
               ]
           },
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "templateids": [
                   "10085"
               ]
           },
           "id": 1
       }

参照

ソース

CTemplate::massRemove() in ui/include/classes/api/services/CTemplate.php.