Packageeu.orangeflash.webapis.wp.mxml
Classpublic class Operation
InheritanceOperation Inheritance flash.events.EventDispatcher
Implementsmx.rpc.mxml.IMXMLSupport

Represents single operation. Used inside WordPress tag in MXML
  
   
   
      
  
  



Public Properties
 PropertyDefined by
  client : WordPress
Reference to the client, which manages operations.
Operation
  concurrency : String
Operation
  lastResult : Object
[read-only] Last result of the operation
Operation
  methodName : String
Indicates method name
Operation
  params : Array
Operation's parameters.
Operation
  showBusyCursor : Boolean
Operation
Public Methods
 MethodDefined by
  
deletePost(postID:String, publish:Boolean = true):WPMethod
Method, invokes blogger.deletePost operation.
Operation
  
editPost(postID:String, content:Content, publish:Boolean):WPMethod
Method, invokes metaWeblog.editPost operation.
Operation
  
Method, invokes mt.getCategoryList, returns array of the Category instances
Operation
  
getPost(postID:String):WPMethod
Method, invokes metaWeblog.getPost operation, request returns Content - information about a specific post.
Operation
  
getPostCategories(postID:String):WPMethod
Method, returns categories for given post
Operation
  
getRecentPosts(numberOfPosts:int):WPMethod
Returns a list of the most recent posts in the system.
Operation
  
getRecentPostTitles(numberOfPosts:int):WPMethod
Returns a bandwidth-friendly list of the most recent posts in the system.
Operation
  
getTrackbackPings(postID:String):WPMethod
Retrieve the list of TrackBack pings posted to a particular entry.
Operation
  
newPost(content:Content, publish:Boolean):WPMethod
Creates a new post, and optionally publishes it.
Operation
  
send(methodName:String = null, params:Array = null):WPMethod
Sends request to the XML-RPC server
Operation
Events
 EventSummaryDefined by
   Dispatched when operation result is fault.Operation
   Dispatched when operation invoked.Operation
   Dispatched when operation returns result successfully.Operation
Property detail
clientproperty
client:WordPress  [read-write]

Reference to the client, which manages operations.

This property can be used as the source for data binding.

Implementation
    public function get client():WordPress
    public function set client(value:WordPress):void
concurrencyproperty 
concurrency:String  [read-write]Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void
lastResultproperty 
lastResult:Object  [read-only]

Last result of the operation

This property can be used as the source for data binding.

Implementation
    public function get lastResult():Object
methodNameproperty 
methodName:String  [read-write]

Indicates method name

This property can be used as the source for data binding.

Implementation
    public function get methodName():String
    public function set methodName(value:String):void
paramsproperty 
params:Array  [read-write]

Operation's parameters.

This property can be used as the source for data binding.

Implementation
    public function get params():Array
    public function set params(value:Array):void
showBusyCursorproperty 
showBusyCursor:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
Method detail
deletePost()method
public function deletePost(postID:String, publish:Boolean = true):WPMethod

Method, invokes blogger.deletePost operation. Deletes a post.

Parameters
postID:String — String, post unique id.
 
publish:Boolean (default = true) — Boolean, honestly i dont know what does it mean.

Returns
WPMethod — WPMethod reference.
editPost()method 
public function editPost(postID:String, content:Content, publish:Boolean):WPMethod

Method, invokes metaWeblog.editPost operation. Updates information about an existing post.

Parameters
postID:String — String, post unique id.
 
content:ContentContent, new content of the post.
 
publish:Boolean — Boolean, publish state, true if post should be published, and false if draft.

Returns
WPMethod — WPMethod reference.
getCategories()method 
public function getCategories():WPMethod

Method, invokes mt.getCategoryList, returns array of the Category instances

Returns
WPMethod — WPMethod reference.
getPost()method 
public function getPost(postID:String):WPMethod

Method, invokes metaWeblog.getPost operation, request returns Content - information about a specific post.

Parameters
postID:String — String, post unique id.

Returns
WPMethodContent instance.
getPostCategories()method 
public function getPostCategories(postID:String):WPMethod

Method, returns categories for given post

Parameters
postID:String — String, unique post id.

Returns
WPMethod — WPMethod instance.
getRecentPosts()method 
public function getRecentPosts(numberOfPosts:int):WPMethod

Returns a list of the most recent posts in the system.

Parameters
numberOfPosts:int — Ammount of post to be returned

Returns
WPMethod — WPMethod instance.
getRecentPostTitles()method 
public function getRecentPostTitles(numberOfPosts:int):WPMethod

Returns a bandwidth-friendly list of the most recent posts in the system.

Parameters
numberOfPosts:int — Ammount of titles to be returned

Returns
WPMethod — WPMethod instance.
getTrackbackPings()method 
public function getTrackbackPings(postID:String):WPMethod

Retrieve the list of TrackBack pings posted to a particular entry. This could be used to programmatically retrieve the list of pings for a particular entry, then iterate through each of those pings doing the same, until one has built up a graph of the web of entries referencing one another on a particular topic.

Parameters
postID:String — String, post unique id.

Returns
WPMethod — WPMethod instance.
newPost()method 
public function newPost(content:Content, publish:Boolean):WPMethod

Creates a new post, and optionally publishes it.

Parameters
content:ContentContent instance with post information.
 
publish:Boolean — Boolean.

Returns
WPMethod — WPMethod instance.
send()method 
public function send(methodName:String = null, params:Array = null):WPMethod

Sends request to the XML-RPC server

Parameters
methodName:String (default = null) — Optional, method name.
 
params:Array (default = null) — Optional, parameters

Returns
WPMethodWPMethod reference.
Event detail
faultevent 
Event object type: eu.orangeflash.webapis.events.XMLRPCEvent

Dispatched when operation result is fault.

invokeevent  
Event object type: eu.orangeflash.webapis.events.XMLRPCEvent

Dispatched when operation invoked.

resultevent  
Event object type: eu.orangeflash.webapis.events.XMLRPCEvent

Dispatched when operation returns result successfully.