<?xml version="1.0"?><phpdoc><class name="DB_storage" extends="" undoc="true" access="private"><file>c:/www/apache/doc2//pear/DB/storage.php</file><doc></doc><function name="DB_storage" undoc="false" access="public"><doc><parameter name="$table" undoc="true"/><parameter name="$keycolumn" undoc="true"/><parameter name="&amp;$dbh" undoc="true"/><return type="void"/><description>objects that should have their &amp;quot;destroy&amp;quot; method called whenPHP shuts down (poor man&amp;apos;s destructors).</description><shortdescription>Constructor, adds itself to the DB_storage class&amp;apos;s list of</shortdescription></doc></function><function name="setup" undoc="false" access="private"><doc><parameter name="$keyval" undoc="true"/><return name="" type="int">DB_OK on success, DB error if not</return><description>configured table.</description><shortdescription>Method used to initialize a DB_storage object from the</shortdescription></doc></function><function name="insert" undoc="false" access="private"><doc><parameter name="$newid" type="boolean" undoc="true"/><return type="void"/><description>object.</description><shortdescription>Create a new (empty) row in the configured table for this</shortdescription></doc></function><function name="toString" undoc="false" access="private"><doc><return name="" type="string">object description</return><description/><shortdescription>Output a simple description of this DB_storage object.</shortdescription></doc></function><function name="dump" undoc="false" access="private"><doc><return type="void"/><description/><shortdescription>Dump the contents of this object to &amp;quot;standard output&amp;quot;.</shortdescription></doc></function><function name="&amp;create" undoc="false" access="private"><doc><parameter name="$table" type="array">the keys are the names&#x0a;of properties/columns</parameter><parameter name="&amp;$data" undoc="true"/><return name="" type="object a">new instance of DB_storage or a subclass of it</return><description/><shortdescription>Static method used to create new DB storage objects.</shortdescription></doc></function><function name="loadFromQuery" undoc="false" access="private"><doc><parameter name="$query" undoc="true"/><parameter name="$params" type="boolean" undoc="true"/><return name="" type="int">DB_OK on success, DB_WARNING_READ_ONLY if the&#x0a;returned object is read-only (because the object&amp;apos;s specified&#x0a;key column was not found among the columns returned by $query),&#x0a;or another DB error code in case of errors.</return><description>object already contains table data, changes will be saved andthe object re-initialized first.</description><shortdescription>Loads data into this object from the given query.  If this</shortdescription></doc></function><function name="DB_storage_destructor" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="set" undoc="true" access="private"><doc><parameter name="$property" undoc="true"/><parameter name="&amp;$newvalue" undoc="true"/><return type="void"/></doc></function><function name="&amp;get" undoc="true" access="private"><doc><parameter name="$property" undoc="true"/><return type="void"/></doc></function><function name="destroy" undoc="true" access="private"><doc><parameter name="$discard" type="boolean" undoc="true"/><return type="void"/></doc></function><function name="store" undoc="true" access="private"><doc><return type="void"/></doc></function><variable name="$_table" access="private" type="string">null<doc><description>updates in views) we hold data from *</description><shortdescription>the name of the table (or view, if the backend database supports</shortdescription></doc></variable><variable name="$_keycolumn" access="private" type="string">null<doc><description/><shortdescription>which column in the table contains primary keys *</shortdescription></doc></variable><variable name="$_dbh" access="private" type="string">null<doc><description/><shortdescription>DB connection handle used for all transactions *</shortdescription></doc></variable><variable name="$_properties" access="private" type="array">array()<doc><description>in this object *</description><shortdescription>an assoc with the names of database fields stored as properties</shortdescription></doc></variable><variable name="$_changes" access="private" type="array">array()<doc><description>have been changed since they were fetched from the database *</description><shortdescription>an assoc with the names of the properties in this object that</shortdescription></doc></variable><variable name="$_readonly" access="private" type="boolean">false<doc><description>objects that don&amp;apos;t have their table&amp;apos;s key column in theirproperty lists will be flagged as read-only. *</description><shortdescription>flag that decides if data in this object can be changed.</shortdescription></doc></variable></class></phpdoc>
