Packagecom.absentdesign.core.webapis.wordpress.methodgroups
Classpublic class WPMethodGroup
InheritanceWPMethodGroup Inheritance MethodGroup Inheritance flash.events.EventDispatcher
SubclassesAuthors, Blogs, Categories, Comments, Pages, Posts, Tags

abstract MethodGroup for making WordPress API calls



Public Properties
 PropertyDefined by
  blogId : int
[read-only]
WPMethodGroup
  password : String
[read-only]
WPMethodGroup
  username : String
[read-only]
WPMethodGroup
Protected Properties
 PropertyDefined by
 Inheritedhelper : MethodGroupHelper
MethodGroup
  requestArgs : Array
WPMethodGroup
  requestFunction : Function
WPMethodGroup
 Inheritedservice : Service
MethodGroup
Public Methods
 MethodDefined by
  
WPMethodGroup
 Inherited
load(request:ServiceRequest):void
MethodGroup
  
loadRequest(request:WPServiceRequest, requestFunction:Function, ... args):void
Load a WPServiceRequest

Automatically calls service.connect() and delays the request until the service is connected if the WPService does not return a valid blogId

WPMethodGroup
Protected Methods
 MethodDefined by
  
processAndDispatch(event:Event):void
Process the result using WPMethodGroupHelper and dispatch a ServiceEvent of type request.eventType with the parsed data
WPMethodGroup
  
Re-submits a delayed call if the service needed to connect or was connecting while the call was made
WPMethodGroup
Property detail
blogIdproperty
blogId:int  [read-only]Implementation
    public function get blogId():int
passwordproperty 
password:String  [read-only]Implementation
    public function get password():String
requestArgsproperty 
protected var requestArgs:Array
requestFunctionproperty 
protected var requestFunction:Function
usernameproperty 
username:String  [read-only]Implementation
    public function get username():String
Constructor detail
WPMethodGroup()constructor
public function WPMethodGroup(service:WPService)

Parameters
service:WPService — The WPService you are using to make the calls
Method detail
loadRequest()method
public function loadRequest(request:WPServiceRequest, requestFunction:Function, ... args):void

Load a WPServiceRequest

Automatically calls service.connect() and delays the request until the service is connected if the WPService does not return a valid blogId

Parameters
request:WPServiceRequest — The WPServiceRequest
 
requestFunction:Function — a direct reference to the function making the loadRequest call - required if you want to be able to delay the call while the service is connecting
 
... args — any arguments for the delayed call
processAndDispatch()method 
protected override function processAndDispatch(event:Event):void

Process the result using WPMethodGroupHelper and dispatch a ServiceEvent of type request.eventType with the parsed data

Parameters
event:Event
serviceConnectedHandler()method 
protected function serviceConnectedHandler(event:ServiceEvent):void

Re-submits a delayed call if the service needed to connect or was connecting while the call was made

Parameters
event:ServiceEvent