Thread: [phpwebapp-commits] CVS: web_app/database package.DB.php,1.2,1.3 class.TableRS.php,1.2,1.3 class.Sta
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-08-11 17:08:48
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1:/tmp/cvs-serv29261/database Modified Files: package.DB.php class.TableRS.php class.StaticRS.php class.Recordset.php class.PagedRS.php class.MySQLCnn.php class.EditableRS.php class.Connection.php Log Message: * added some comments (that are handled by phpDocumentor) for dividing the code into packages and subpackages * replaced .gif images by .png images Index: package.DB.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/package.DB.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** package.DB.php 16 Jul 2003 09:27:59 -0000 1.2 --- package.DB.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,3 **** --- 1,7 ---- <?php + /** + * @package database + */ + if (USES_DB) { Index: class.TableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.TableRS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.TableRS.php 16 Jul 2003 09:27:59 -0000 1.2 --- class.TableRS.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,13 **** <?php - /***************************************************************** - /* CLASS TableRecordset - /* Same as class EditableRS but it can be used to open only - /* a table of the DB. Also, the changes that are done programatically - /* to this recordset can be committed to the database or can be - /* aborded at any time. - /*****************************************************************/ - include_once DB_PATH."class.Recordset.php"; class TableRecordset extends Recordset { --- 1,13 ---- <?php include_once DB_PATH."class.Recordset.php"; + /** + * Same as class EditableRS but it can be used to open only + * a table of the DB. Also, the changes that are done programatically + * to this recordset can be committed to the database or can be + * aborded at any time. + * + * @package database + */ class TableRecordset extends Recordset { Index: class.StaticRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.StaticRS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.StaticRS.php 16 Jul 2003 09:27:59 -0000 1.2 --- class.StaticRS.php 11 Aug 2003 16:17:52 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- <?php + include_once DB_PATH."class.Recordset.php"; + /** * Same as class Recordset, but it is opened only once in a page. *************** *** 6,12 **** * page without changing, e.g. when a recordset fills a listbox * and this listbox is used many times in the page. */ - include_once DB_PATH."class.Recordset.php"; - class StaticRS extends Recordset { --- 8,14 ---- * page without changing, e.g. when a recordset fills a listbox * and this listbox is used many times in the page. + * + * @package database */ class StaticRS extends Recordset { Index: class.Recordset.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Recordset.php 5 Aug 2003 06:54:09 -0000 1.4 --- class.Recordset.php 11 Aug 2003 16:17:52 -0000 1.5 *************** *** 7,10 **** --- 7,12 ---- * In case of modifying the class for a DB other than MySQL, only * the function result2table() needs to be changed. + * + * @package database */ class Recordset Index: class.PagedRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.PagedRS.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.PagedRS.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 7,10 **** --- 7,12 ---- * is a group of consecutive records, all the pages have the same * number of records and they form a partition of the results. + * + * @package database */ class PagedRS extends Recordset Index: class.MySQLCnn.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.MySQLCnn.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.MySQLCnn.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.MySQLCnn.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 1,14 **** <?php - /***************************************************************** - /* CLASS MySQLCnn - /* This is the MySQL implementation of the interface Connection. - /*****************************************************************/ - include_once DB_PATH."class.Connection.php"; class MySQLCnn extends Connection { /** ! * assw =DBPASS, $db_name =DBNAME) * Opens a connection using the given parameters. * If no parameters are given, then uses as default values --- 1,13 ---- <?php include_once DB_PATH."class.Connection.php"; + /** + * This is the MySQL implementation of the interface Connection. + * @package database + */ class MySQLCnn extends Connection { /** ! * passw =DBPASS, $db_name =DBNAME) * Opens a connection using the given parameters. * If no parameters are given, then uses as default values Index: class.EditableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.EditableRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.EditableRS.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.EditableRS.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 5,8 **** --- 5,10 ---- * Same as class StaticRS, but editable: the programer can add, * insert, remove or change its records. + * + * @package database */ class EditableRS extends StaticRS Index: class.Connection.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Connection.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.Connection.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.Connection.php 11 Aug 2003 16:17:52 -0000 1.4 *************** *** 4,7 **** --- 4,9 ---- * and for executing a query. This is like an interface, which * is implemented by DB specific classes. + * + * @package database */ class Connection |