void each ( fnCallback , params )
After a succesful request you can traverse through the article list. You pass a callback function to the method, and the method is called for each article
The first argument to this callback function is a special object with the properties:
fnCallback <Function>- the callback function to call for each article
params <Mixed>- additional data passed to the callback function
void fetch ( obj )
In case of a successful request, the obj.fnSuccess-callback function will be called. The first argument for the callback method is the result data of the request. The second argument will be the data provided by obj.params.
In case of a failed request, the obj.fnError callback function will be called. The first argument to the callback is the error code, the second ist the error message.
obj <Object>- Object literal specifing the callback methods
void fetchEach ( fnCallback , params )
Fetches the articles via fetch() first and then calls fnCallback for every article record like each() does.
There is no way to handle errors with this method!
fnCallback <Function>- Function to call for every article record
params <Mixed>- additional data to pass to the callback function