Class WFActionResponseAppcelerator

Description

A custom WFActionResponse class for sending messages back to the Appcelerator client.

NOTE: payloads should be associative arrays.

Fluent interface: WFActionResponseAppcelerator::WFActionResponseAppcelerator($message, $payload)->addMessage($message2, $payload2)

Located in /framework/widgets/WFAppcelerator.php (line 126)

WFObject
   |
   --WFActionResponse
      |
      --WFActionResponseAppcelerator
Method Summary
static object WFActionResponseAppcelerator WFActionResponseAppcelerator ([ $message = NULL], [ $payload = NULL])
WFActionResponseAppcelerator __construct ()
void addMessage ([string $message = NULL], [mixed $payload = NULL])
void contentType ()
void data ()
Variables

Inherited Variables

Inherited from WFActionResponse

WFActionResponse::$data
Methods
static method WFActionResponseAppcelerator (line 133)

Fluent constructor.

  • access: public
static object WFActionResponseAppcelerator WFActionResponseAppcelerator ([ $message = NULL], [ $payload = NULL])
  • $message
  • $payload
Constructor __construct (line 140)
  • access: public
WFActionResponseAppcelerator __construct ()

Redefinition of:
WFActionResponse::__construct()
addMessage (line 156)

Add another response message to the Appcelerator response queue.

  • access: public
void addMessage ([string $message = NULL], [mixed $payload = NULL])
  • string $message: The message to send on the client.
  • mixed $payload: The payload to send along with the message.
contentType (line 145)
  • access: public
void contentType ()

Redefinition of:
WFActionResponse::contentType()
data (line 174)
  • access: public
void data ()

Redefinition of:
WFActionResponse::data()

Inherited Methods

Inherited From WFActionResponse

WFActionResponse::__construct()
WFActionResponse::contentType()
WFActionResponse::data()
WFActionResponse::send()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()

Documentation generated on Sun, 28 Sep 2008 18:24:21 -0400 by phpDocumentor 1.4.1