示例#1
0
 function requestSend($page, $params)
 {
     // code to send message here...
     // Send response to appcelerator
     sleep(2);
     // give animation time to display for demo
     return WFActionResponseAppcelerator::WFActionResponseAppcelerator('response.sent', array('message' => 'Mail request received. NOTE: This demo does not actually send the email.'));
 }
示例#2
0
 /**
  * Fluent constructor.
  *
  * @return object WFActionResponseAppcelerator
  */
 public static function WFActionResponseAppcelerator($message = NULL, $payload = NULL)
 {
     $response = new WFActionResponseAppcelerator();
     $response->addMessage($message, $payload);
     return $response;
 }