StockManiac Client to talk to stockmaniacd via XML-RPC
Provide easy to use wrapper methods around the xmlrpc methods that the daemon exports. Thus this code must be kept in sync with the daemon!
It requires the 'xmlrpc' exptension loaded into PHP (take a look at http://xmlrpc-epi.sourceforge.net)
The goal is to have another layer between actual daemon public function calls and the GUI code. Since if the daemon changes I want one place to adjust the GUI. Also the GUI may need additional logic which does not fit well into the daemon... here is the correct place for that.
Located in /lib/daemon_client.class.php (line 53)
constructor
automatically checks whether the daemon is reachable ATTENTION:
Return the error string or false if no error occured
Return all information the daemon knows about a news feed The actual feed data will be ommited to save memory.
Return all information the daemon knows about a security
Query a symbol from a quote source (Finance::Quote module)
Request the daemon to parse math $expressions.
Returns a list of variables contained in each expression. The returned list will have the same index as $expressions, but the order of elements is _not_ guaranteed. For example:
Request the daemon to reload a newsfeed record from the database, immediatelly.
Request the daemon to reload a security record from the database, immediatelly.
Request immeditate quote update for security.
Request the daemon to solve math $expressions using data from $values
The indices of $expressions and $values are expected to match. For example: $expressions[0] will be solved using variable names and values from $values[0]. Suppose
Request the StockManiac daemon to run a method. Return whatever the daemon returns.
Set the internal error string
Documentation generated on Sun, 22 Aug 2010 11:20:14 +0200 by phpDocumentor 1.4.3