Package | com.absentdesign.core.webapis.wordpress.methodgroups |
Class | public class Pages |
Inheritance | Pages ![]() ![]() ![]() |
Method | Defined by | ||
---|---|---|---|
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 | ||
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 | ||
![]() |
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 | |
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 |
Pages | () | constructor |
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
ParameterspageId: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
ParameterspageId: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
ParameterspageId: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
Parameterscontent:Page — The new Page to add
|
|
publish:Boolean |