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:
-
$array
Array
Returns:
Class instance
sendMessage
-
$view
-
$fields=array()
-
$options=array()
-
[$options.language]
Parameters:
-
$view
StringThe 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:
-
view
String -
fields
Array -
options
Array
Users/mobile/sendMessage
After
Event Payload:
-
view
String -
fields
Array -
options
Array -
mail
String
Users/mobile/sendMessage/gateway
Before
Event Payload:
-
view
String -
fields
Array -
options
Array -
email
Zend_MailYou can call methods on this before sending sms
Users/mobile/sendMessage/twilio
Before
Event Payload:
-
view
String -
fields
Array -
options
Array -
client
Services_TwilioYou can call methods on this before sending sms
Users/resend
Before
Event Payload:
-
user
String -
mobile
String
Users/resend
After
Event Payload:
-
user
String -
mobile
String