| Server IP : 208.122.213.31 / Your IP : 216.73.216.183 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/Mandrill/ |
Upload File : |
<?php
class Mandrill_Metadata {
public function __construct(Mandrill $master) {
$this->master = $master;
}
/**
* Get the list of custom metadata fields indexed for the account.
* @return array the custom metadata fields for the account
* - return[] struct the individual custom metadata field info
* - name string the unique identifier of the metadata field to update
* - state string the current state of the metadata field, one of "active", "delete", or "index"
* - view_template string Mustache template to control how the metadata is rendered in your activity log
*/
public function getList() {
$_params = array();
return $this->master->call('metadata/list', $_params);
}
/**
* Add a new custom metadata field to be indexed for the account.
* @param string $name a unique identifier for the metadata field
* @param string $view_template optional Mustache template to control how the metadata is rendered in your activity log
* @return struct the information saved about the new metadata field
* - name string the unique identifier of the metadata field to update
* - state string the current state of the metadata field, one of "active", "delete", or "index"
* - view_template string Mustache template to control how the metadata is rendered in your activity log
*/
public function add($name, $view_template=null) {
$_params = array("name" => $name, "view_template" => $view_template);
return $this->master->call('metadata/add', $_params);
}
/**
* Update an existing custom metadata field.
* @param string $name the unique identifier of the metadata field to update
* @param string $view_template optional Mustache template to control how the metadata is rendered in your activity log
* @return struct the information for the updated metadata field
* - name string the unique identifier of the metadata field to update
* - state string the current state of the metadata field, one of "active", "delete", or "index"
* - view_template string Mustache template to control how the metadata is rendered in your activity log
*/
public function update($name, $view_template) {
$_params = array("name" => $name, "view_template" => $view_template);
return $this->master->call('metadata/update', $_params);
}
/**
* Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
* @param string $name the unique identifier of the metadata field to update
* @return struct the information for the deleted metadata field
* - name string the unique identifier of the metadata field to update
* - state string the current state of the metadata field, one of "active", "delete", or "index"
* - view_template string Mustache template to control how the metadata is rendered in your activity log
*/
public function delete($name) {
$_params = array("name" => $name);
return $this->master->call('metadata/delete', $_params);
}
}