SMSSend Site
This class provides limited support for parsing SMSSend scripts.
SMS Web Sender requires certain standard parameters be available for all SMS Sites, therefore, along with the SMSSend script, you will also need to supply a config file. The config file should map the SMSSend parameters and error codes to the standard SMS Web Sender ones.
Please consider this class experimental, I haven't tested it enough so it might produce odd results. I also haven't looked at the SMSSend source code properly, so don't expect results identical to SMSSend. I've been relying on the SMSSend scripting docs: <http://zekiller.skytech.org/fichiers/smssend/doc_scr_en.html>
These features are still not supported by this class:
Located in Program_Root/SMSSend_Site.php (line 53)
SMS_Site | --SMSSend_Site
Error mapping
Associative array mapping SMSSend script error codes to the standard SWS ones.
HTTP Request message
Number format
Param mapping
Associative array mapping SMSSend params to the standard SWS ones.
Param options
Param values
Phase cookies
Array holding cookies created by the SetCookie SMSSend command
Script
Search
Inherited from SMS_Site
SMS_Site::$ccode
SMS_Site::$country_codes
SMS_Site::$error_num
SMS_Site::$error_string
SMS_Site::$html_functions
SMS_Site::$http_client
SMS_Site::$login_pass
SMS_Site::$login_user
SMS_Site::$message
SMS_Site::$number
SMS_Site::$site_name
SMSSend command: Else (what to do if previous search terms didn't match)
SMSSend command: ElseSearch (alias to to Search in our case)
search text
SMSSend command: GO
Submits HTTP Request and returns boolean (true on success, false on fail)
SMSSend command: Params
querystring to append to URL
SMSSend command: PostData
body of POST request
SMSSend command: Referer
referer URL
SMSSend command: Search
SearchLook for text in the HTTP response. Must be followed be ErrorMsg or PrintMsg. Only ONE Search per bloc (for more searches, use ElseSearch after this one).
search text
SMSSend command: SetCookie <Phase> <Domain>-<Path>-<Name>=<Value>
SMSSend command: Sleep
seconds to sleep
SMSSend command: RTFollowLink-<num>-<name>
Returns link URL from HTML with name passed in $arg
SMSSend command: RTFormAction-<num>-<ind>
Returns the ACTION field of the form ind (the first form being 0) searched in the result from phase num (the first phase being 1, and automatic redirect being counted).
SMSSend command: RTGetInput-<num>-<name>
Returns value of attribute VALUE from INPUT tag whose NAME attribute value matches that provided in <name>. Searched in the result from phase <num>
SMSSend command: RTGetInput2-<num>-<idx>-<flags>
Returns the fields (defined by flags) of the INPUT tag of index idx (the first input being 1) searched in the result from phase num (the first phase being 1, and automatic redirect being counted). Flags : {a:NAME=VALUE}{n:NAME}{v:VALUE}{t:TYPE}.
SMSSend command: RTGetInput3-<num>-<ind>-<idx>
Returns the NAME and VALUE fields of the INPUT tag of index idx (the first input being 1) of the form ind (the first form being 0) searched in the result from phase num (the first phase being 1, and automatic redirect being counted).
SMSSend command: RTGetString-<num>-<textBefore>
Returns string found just after textBefore (after removing spaces and string delimiters) searched in the result from phase num.
SMSSend command: RTHost-<num>
Returns host used in phase $num request
SMSSend command: RTParams-<num>
Returns params string used in phase $num request
SMSSend command: RTURL-<num>
Returns URL string used in phase $num request
Get number (overrides method in SMS_Site)
Take into account $number_format specified in the script config file.
Return phase result (HTTP_Response object) from phase $num
default: last result
Parse SMSSend script
Opens an SMSSend script and the SMS Web Sender config file for the script and begins to process it.
Process a GetURL or PostURL block
(either 'POST' or 'GET')
Reset block attributes
Called at the start of each block
Inherited From SMS_Site
SMS_Site::SMS_Site()
SMS_Site::get_ccode()
SMS_Site::get_ccode_np()
SMS_Site::get_error()
SMS_Site::get_error_number()
SMS_Site::get_http_client()
SMS_Site::get_login_pass()
SMS_Site::get_login_user()
SMS_Site::get_message()
SMS_Site::get_number()
SMS_Site::get_number_nz()
SMS_Site::get_site_name()
SMS_Site::send()
SMS_Site::set_ccode()
SMS_Site::set_country_codes()
SMS_Site::set_http_client()
SMS_Site::set_login()
SMS_Site::set_message()
SMS_Site::set_number()
SMS_Site::set_site_name()
SMS_Site::supports_country()
Documention generated on Sat, 19 Jul 2003 03:43:25 +0100 by phpDocumentor 1.2.0