Due to the nature of tag objects containing several fields, many of which are likely irrelevant for use in email templates, but may be useful to you in certain circumstances, an example dump of the tag objects are shown below. Code Block |
---|
language | php |
---|
title | The {contact} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[client_id] => 1
[user_id] =>
[contact_type] => primary
[contact_type_id] =>
[first_name] => First
[last_name] => Last
[title] =>
[company] =>
[email] => first.last@domain.com
[address1] => 1 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[date_added] => 2014-06-25 18:05:34
[contact_type_name] =>
[contact_type_is_lang] =>
) |
Code Block |
---|
language | php |
---|
title | The {package} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1
[module_id] => 3
[name] => My Package
[description] =>
[description_html] =>
[qty] =>
[module_row] => 1
[module_group] =>
[taxable] => 0
[single_term] => 0
[status] => active
[company_id] => 1
[prorata_day] => 1
[prorata_cutoff] =>
[id_code] => 1
[email_content] => Array
(
[0] => stdClass Object
(
[lang] => en_us
[html] =>
[text] =>
)
)
[pricing] => Array
(
[0] => stdClass Object
(
[id] => 2
[pricing_id] => 2
[package_id] => 1
[term] => 1
[period] => day
[price] => 1.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
)
[1] => stdClass Object
(
[id] => 3
[pricing_id] => 3
[package_id] => 1
[term] => 1
[period] => week
[price] => 7.0000
[setup_fee] => 0.0000
[cancel_fee] => 0.0000
[currency] => USD
)
[2] => stdClass Object
(
[id] => 1
[pricing_id] => 1
[package_id] => 1
[term] => 1
[period] => month
[price] => 15.0000
[setup_fee] => 0.5000
[cancel_fee] => 0.0000
[currency] => USD
)
)
[meta] => stdClass Object
(
)
[groups] => Array
(
[0] => stdClass Object
(
[id] => 1
[name] => My Package Group
[description] =>
[type] => standard
[company_id] => 1
)
[1] => stdClass Object
(
[id] => 2
[name] => Addon Group
[description] =>
[type] => addon
[company_id] => 1
)
)
[option_groups] => Array
(
[0] => stdClass Object
(
[id] => 1
[name] => Package Option Group
[description] => 1
)
)
) |
Code Block |
---|
language | php |
---|
title | The {service} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 35
[parent_service_id] =>
[package_group_id] => 1
[id_format] => {num}
[id_value] => 35
[pricing_id] => 2
[client_id] => 1
[module_row_id] => 1
[coupon_id] =>
[qty] => 1
[override_price] =>
[override_currency] =>
[status] => pendingsuspended
[date_added] => 2014-08-27 18:52:50
[date_renews] => 2014-10-27 18:52:50
[date_last_renewed] =>
[date_suspended] => 2014-10-20 00:00:00
[date_canceled] =>
[id_code] => 35
[client_id_code] => 1500
[term] => 1
[period] => month
[name] => My Service Field
[client_first_name] => First
[client_last_name] => Last
[client_company] =>
[client_address1] => 1 Main St.
[client_email] => first.last@domain.com
[fieldspackage_prorata_day] => Array
(
[fields] => Array
(
[0] => stdClass Object
[key] => cpanel_confirm_password
(
[value] => !fy$n(nz3#szh
[serialized] => 0
[encrypted] => 1
[1] => stdClass Object
[key] => cpanel_domain
[value] => testdomain.com
[serialized] => 0
[encrypted] => 0
[2] => stdClass Object
[key] => cpanel_password
[value] => !fy$n(nz3#szh
[serialized] => 0
[encrypted] => 1
[3] => stdClass Object
[key] => servicecpanel_label
username
[value] => Mytestusername Service Field
[serialized] => 0
[encrypted] => 0
)
)
[options] => Array
(
)
[service_label] => My Service Field
) |
Code Block |
---|
language | php |
---|
title | The {client} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1500
[user_id] => 2
[client_group_id] => 1
[primary_account_id] =>
[primary_account_type] =>
[status] => active
[id_code] => 1500
[contact_id] => 1
[first_name] => First
[last_name] => Last
[company] =>
[email] => first.last@domain.com
[address1] => 1 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[group_name] => General
[company_id] => 1
[username] => first.last@domain.com
[two_factor_mode] => none
[two_factor_key] =>
[two_factor_pin] =>
[date_added] => 2014-06-25 18:05:34
[settings] => Array
(
...
[language] => en_us
...
)
} |
Code Block |
---|
language | php |
---|
title | The {staff} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[user_id] => 1
[first_name] => Staff
[last_name] => Member
[email] => s.member@domain.com
[email_mobile] =>
[status] => active
) |
Code Block |
---|
language | php |
---|
title | The {errors} array |
---|
collapse | true |
---|
| Array
(
[field_name] => Array
(
[required] => Field Name is required.
)
) |
|