Users_Mobile Class
Class representing 'Mobile' rows in the 'Users' database You can create an object of this class either to access its non-static methods, or to actually represent a mobile row in the Users database.
Item Index
Methods
Methods
__set_state
-
$array
Implements the __set_state method, so it can work with with var_export and be re-imported successfully.
Parameters:
-
$arrayArray
Returns:
Class instance
sendMessage
-
$view -
$fields=array() -
$options=array() -
[$options.language]
Parameters:
-
$viewStringThe name of a view for the message. Fields are passed to this array.
-
$fields=array()ArrayThe fields referenced in the subject and/or view
-
$options=array()ArrayArray of options. Can include:
"delay" => A delay, in milliseconds, to wait until sending email. Only works if Node server is listening. -
[$options.language]String optionalPreferred language
Returns:
setUp
()
The setUp() method is called the first time an object of this class is constructed.
Events
Users/mobile/sendMessage
Before
Event Payload:
-
viewString -
fieldsArray -
optionsArray
Users/mobile/sendMessage
After
Event Payload:
-
viewString -
fieldsArray -
optionsArray -
mailString
Users/mobile/sendMessage/gateway
Before
Event Payload:
-
viewString -
fieldsArray -
optionsArray -
emailZend_MailYou can call methods on this before sending sms
Users/mobile/sendMessage/twilio
Before
Event Payload:
-
viewString -
fieldsArray -
optionsArray -
clientServices_TwilioYou can call methods on this before sending sms
Users/resend
Before
Event Payload:
-
userString -
mobileString
Users/resend
After
Event Payload:
-
userString -
mobileString