StockManiac Database Interface (DBI)
This class contains generically usable SQL statements which are packaged into methods ready for use.
All of this is available through a StockManiac object. Plugins should make use of this whenever possible to avoid the need for plugin specific SQL statements for almost everything. Less SQL statements in the application is beautiful. :-)
Located in /lib/dbi.class.php (line 50)
session | --gui | --dbc | --dbi
Class | Description |
---|---|
stockmaniac | StockManiac |
Inherited from dbc
dbc::$sql_affected_rows
dbc::$sql_error
dbc::$sql_execution_time
dbc::$_db
dbc::$_result
Inherited from gui
gui::$themes
gui::$_smarty
Inherited from session
session::$err
Assing document to a position, order or portfolio. At least one of those must be given.
Select most recent database schema version./
Close a position.
ATTENTION: close is performed without any checks. This might not be what you want, especially if it still contains shares.
Delete document content as well as its metadata even if contraints do not exist the way they should.
ATTENTION: Only useful during the upload phase. Do not use otherwise.
Delete document content as well as its metadata.
Delete a user setting.
Select detailed information from given login name.
Select user Access Control Lists (ACLs)
Select user comment(s) by user id and time, optionally comment id.
Select document meta data by various criteria. At least a UID must be given.
Select document content.
ATTENTION: result is likely to contain binary data.
Select first position id and its stock id from a user portfolio.
Select last insert id.
Depends on what the previous query did. If it was a INSERT query on a table with AUTO_INCREMENT column it should return the value created by AUTO_INCREMENT.
Select order details by given position and order id.
Select orders by position and (optionally) list of order ids and presense of a current quote.
NOTE: a present quote value actually means that the order has been executed and is not pending anymore.
Select User Portfolios.
Select list of positions matching various criteria.
Select details for given position.
Select the owner of a position.
Select quotes for a specific date and (optionaly) specific stock(s).
Select settings by user, optionally limited to a specific plugin.
Select split data for a given security or split.
Select a list of all Stocks in the System.
Ueful with sql_get_indexedlist_result(). Optionally pass a array of IDs to be exclude from the listing.
Select timetags.
NOTE:
Store document meta data.
Store document content data (often binary).
Store position data.
Store a user setting.
Update user password.
NOTE: we rely on PHPs md5() public function, not on mySQL.
Verify username/password combination.
NOTE: we rely on PHPs md5() public function, not on mySQL.
Inherited From dbc
dbc::__construct()
dbc::sql()
dbc::sql_escape_string()
dbc::sql_get_array_result()
dbc::sql_get_indexedlist_result()
dbc::sql_get_objectarray_result()
dbc::sql_get_object_result()
dbc::sql_get_result()
dbc::sql_max_packet_size()
dbc::sql_script()
Inherited From gui
gui::__construct()
gui::append()
gui::assign()
gui::debug()
gui::display()
gui::get_microtime()
gui::get_template_vars()
gui::get_themes()
gui::register_object()
gui::set_default_theme()
Inherited From session
session::__construct()
session::sess_destroy()
session::sess_exists()
session::sess_get_var()
session::sess_store_var()
session::sess_unset_var()
Documentation generated on Sun, 22 Aug 2010 11:20:17 +0200 by phpDocumentor 1.4.3