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 143)

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 150)

Fluent constructor.

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

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

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 162)
  • access: public
void contentType ()

Redefinition of:
WFActionResponse::contentType()
data (line 191)
  • 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::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:19:43 -0400 by phpDocumentor 1.4.2