Packagecom.absentdesign.core.webapis.wordpress.methodgroups
Classpublic class Pages
InheritancePages Inheritance WPMethodGroup Inheritance MethodGroup Inheritance flash.events.EventDispatcher

concrete WPMethodGroup for manipulating pages



Public Properties
 PropertyDefined by
 InheritedblogId : int
WPMethodGroup
 Inheritedpassword : String
WPMethodGroup
 Inheritedusername : String
WPMethodGroup
Protected Properties
 PropertyDefined by
 Inheritedhelper : MethodGroupHelper
MethodGroup
 InheritedrequestArgs : Array
WPMethodGroup
 InheritedrequestFunction : Function
WPMethodGroup
 Inheritedservice : Service
MethodGroup
Public Methods
 MethodDefined by
  
Pages(service:WPService)
Pages
  
deletePage(pageId:int):void
Wrapper for wp.deletePage - deletes a single page

Will dispatch a ServiceEvent of type WPServiceEvent.DELETE_PAGE with a struct as the WPServiceEvent.data once loaded

Pages
  
editPage(pageId:int, content:Page, publish:Boolean):void
Wrapper for wp.editPage - edit an existing page

Will dispatch a ServiceEvent of type WPServiceEvent.EDIT_PAGE with a struct as the WPServiceEvent.data once loaded

Pages
  
getPage(pageId:int):void
Wrapper for wp.getPage - gets a single page

Will dispatch a ServiceEvent of type WPServiceEvent.GET_PAGE with a Page as the WPServiceEvent.data once loaded

Pages
  
getPageList():void
Wrapper for wp.getPageList - gets a summary list of all pages on the site

Will dispatch a ServiceEvent of type WPServiceEvent.PARSE_PAGE_LIST with an array of Pages as the WPServiceEvent.data once loaded

Pages
  
getPages():void
Wrapper for wp.getPages - gets all pages on the site

Will dispatch a ServiceEvent of type WPServiceEvent.PARSE_PAGES with an array of Pages as the WPServiceEvent.data once loaded

Pages
 Inherited
load(request:ServiceRequest):void
MethodGroup
 Inherited
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
  
newPage(content:Page, publish:Boolean):void
Wrapper for wp.newPage - adds a page to the blog

Will dispatch a ServiceEvent of type WPServiceEvent.NEW_PAGE with a struct as the WPServiceEvent.data once loaded

Pages
Protected Methods
 MethodDefined by
 Inherited
processAndDispatch(event:Event):void
Process the result using WPMethodGroupHelper and dispatch a ServiceEvent of type request.eventType with the parsed data
WPMethodGroup
 Inherited
Re-submits a delayed call if the service needed to connect or was connecting while the call was made
WPMethodGroup
Constructor detail
Pages()constructor
public function Pages(service:WPService)Parameters
service:WPService
Method detail
deletePage()method
public function deletePage(pageId:int):void

Wrapper for wp.deletePage - deletes a single page

Will dispatch a ServiceEvent of type WPServiceEvent.DELETE_PAGE with a struct as the WPServiceEvent.data once loaded

Parameters
pageId:int — the id of the page you want to delete
editPage()method 
public function editPage(pageId:int, content:Page, publish:Boolean):void

Wrapper for wp.editPage - edit an existing page

Will dispatch a ServiceEvent of type WPServiceEvent.EDIT_PAGE with a struct as the WPServiceEvent.data once loaded

Parameters
pageId:int — The id of the page you are editing
 
content:Page — The edited page
 
publish:Boolean
getPage()method 
public function getPage(pageId:int):void

Wrapper for wp.getPage - gets a single page

Will dispatch a ServiceEvent of type WPServiceEvent.GET_PAGE with a Page as the WPServiceEvent.data once loaded

Parameters
pageId:int — the id of the page you want to retreive
getPageList()method 
public function getPageList():void

Wrapper for wp.getPageList - gets a summary list of all pages on the site

Will dispatch a ServiceEvent of type WPServiceEvent.PARSE_PAGE_LIST with an array of Pages as the WPServiceEvent.data once loaded

getPages()method 
public function getPages():void

Wrapper for wp.getPages - gets all pages on the site

Will dispatch a ServiceEvent of type WPServiceEvent.PARSE_PAGES with an array of Pages as the WPServiceEvent.data once loaded

newPage()method 
public function newPage(content:Page, publish:Boolean):void

Wrapper for wp.newPage - adds a page to the blog

Will dispatch a ServiceEvent of type WPServiceEvent.NEW_PAGE with a struct as the WPServiceEvent.data once loaded

Parameters
content:Page — The new Page to add
 
publish:Boolean