Difference between revisions of "Nats list sites"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Revision as of 14:27, 3 November 2008
Applies to NATS 4.0.25 and greater.
nats_list_sites
Stores in a Smarty array details about every site in a particular program.
Alias: list_sites
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Values | Example |
---|---|---|---|---|
programid | The program's ID number | Any valid program ID number. | The default program ID number | programid="123" |
full | Lists additional details about the sites. | 0 or 1 (exclusive) | Off; does not list additional details | full="1" |
type | Only lists sites with a particular type. | Any valid type name | Off; shows all site types | type="mytype" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
Output
Output placed in the Smarty array $sites. By default, the array will contain one field for each site name; for example:
Array (2) 1 => "Test site" 2 => "Test site 2"
If full is set, $sites will contain a multidimensional array; for example:
Array (2) 1 => Array (56) tourid => "1" tour => "MAIN" siteid => "1" networkid => "0" name => "Default Tour" url => "http://nats4.vodka.toomuchmedia.com/s..." linkdomain => "nats4.vodka.toomuchmedia.com" description => "" thumb => "" thumb_ext => "" third_party_partner_id => "0" spartaurl => "" denyurl => "" denypost => "" approvalurl => "http://www.yahoo.com.hk" approvalpost => "" rebillpost => "" creditpost => "" chargebackpost => "" insufficient_fundpost => "" voidpost => "" userpost => "" userman => "http://nats4.vodka.toomuchmedia.com/c..." expirepost => "" custom => "" admin_signup_email => "cho@toomuchmedia.com" upgradeurl => "" upgradepost => "" allowed_lang => "" alternativeurl => "" allowed_lang_track_raw => "0" allowed_lang_track_unq => "0" hidden => "0" mail_member_joined => "Member Join" mail_member_cancelled => "Member Cancel" mail_member_rebilled => "Member Rebill" mail_member_credited => "Member Credit" mail_member_chargedback => "Member Chargeback" mail_member_insufficient => "Member Insufficient Funds" mail_member_voided => "Member Void" upgradedenyurl => "" upgradedenypost => "" prejoinpost => "" byo_owner => "0" byo_program => "0" byo_owner_only => "0" deleted => "0" niche => "" strack_programid => "0" change_detailspost => "" mail_member_change => "Member Details Change" site_name => "Test site" site => "test" date_added => "1212465600" date_live => "0" strack_link => "http://nats4.vodka.toomuchmedia.com/s..." 2 => Array (56) tourid => "2" tour => "MAIN" siteid => "2" networkid => "0" name => "Default Tour" url => "" linkdomain => "" description => "" thumb => "" thumb_ext => "" third_party_partner_id => "0" spartaurl => "" denyurl => "" denypost => "" approvalurl => "" approvalpost => "" rebillpost => "" creditpost => "" chargebackpost => "" insufficient_fundpost => "" voidpost => "" userpost => "" userman => "" expirepost => "" custom => "" admin_signup_email => "" upgradeurl => "" upgradepost => "" allowed_lang => "" alternativeurl => "" allowed_lang_track_raw => "0" allowed_lang_track_unq => "0" hidden => "0" mail_member_joined => "" mail_member_cancelled => "" mail_member_rebilled => "" mail_member_credited => "" mail_member_chargedback => "" mail_member_insufficient => "" mail_member_voided => "" upgradedenyurl => "" upgradedenypost => "" prejoinpost => "" byo_owner => "0" byo_program => "0" byo_owner_only => "0" deleted => "0" niche => "" strack_programid => "0" change_detailspost => "" mail_member_change => "" site_name => "Test site 2" site => "test2" date_added => "1209960000" date_live => "0" strack_link => ""
Notes
None.