daemon_clientStockManiac 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 __construct (line 101)
constructor
automatically checks whether the daemon is reachable ATTENTION:
get_error (line 156)
Return the error string or false if no error occured
get_feed (line 179)
Return all information the daemon knows about a news feed The actual feed data will be ommited to save memory.
get_stock (line 166)
Return all information the daemon knows about a security
lookup_symbol (line 213)
Query a symbol from a quote source (Finance::Quote module)
parse_math_expressions (line 275)
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:
reload_feed (line 224)
Request the daemon to reload a newsfeed record from the database, immediatelly.
reload_stock (line 192)
Request the daemon to reload a security record from the database, immediatelly.
request_quote_update (line 202)
Request immeditate quote update for security.
solve_math_expressions (line 248)
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
_run (line 126)
Request the StockManiac daemon to run a method. Return whatever the daemon returns.
_set_error (line 145)
Set the internal error string
Documentation generated on Sun, 22 Aug 2010 11:20:14 +0200 by phpDocumentor 1.4.3