[phpMP-CVS] CVS: phpMP/includes/dba mysql.dba,1.1,1.2
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-06-30 03:43:45
|
Update of /cvsroot/phpmp/phpMP/includes/dba In directory sc8-pr-cvs1:/tmp/cvs-serv15256/includes/dba Modified Files: mysql.dba Log Message: All code recommented to specification. Index: mysql.dba =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/dba/mysql.dba,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mysql.dba 30 Jun 2003 01:44:07 -0000 1.1 --- mysql.dba 30 Jun 2003 03:43:42 -0000 1.2 *************** *** 30,34 **** var $query_count; ! function connect () { if ( empty ($this->ident_link) ) --- 30,38 ---- var $query_count; ! /** ! * @return int ! * @desc Connects to a MySQL server. ! */ ! function connect() { if ( empty ($this->ident_link) ) *************** *** 55,59 **** } ! function close () { if ( $this->ident_link != 0 ) --- 59,67 ---- } ! /** ! * @return int ! * @desc Closes the connection to a MySQL server. ! */ ! function close() { if ( $this->ident_link != 0 ) *************** *** 70,74 **** } ! function query ( $qry ) { if ( $this->ident_link == 0 ) --- 78,87 ---- } ! /** ! * @return int ! * @param qry string ! * @desc Performs a query on the MySQL server. ! */ ! function query($qry) { if ( $this->ident_link == 0 ) *************** *** 93,97 **** } ! function num_rows ($query) { if ( $this->ident_link == 0 ) --- 106,115 ---- } ! /** ! * @return int ! * @param query string ! * @desc Container for mysql_num_rows(). ! */ ! function num_rows($query) { if ( $this->ident_link == 0 ) *************** *** 109,112 **** --- 127,134 ---- } + /** + * @return int + * @desc Container for mysql_insert_id(). + */ function insert_id() { *************** *** 124,128 **** } ! function result( $result, $row=0, $field='' ) { --- 146,157 ---- } ! ! /** ! * @return mixed ! * @param result int ! * @param row int ! * @param field string ! * @desc Container for mysql_result(). ! */ function result( $result, $row=0, $field='' ) { *************** *** 139,143 **** return $result; } ! function fetch_array($query) { --- 168,177 ---- return $result; } ! ! /** ! * @return array ! * @param query int ! * @desc Container for mysql_fetch_array(). ! */ function fetch_array($query) { *************** *** 154,157 **** --- 188,196 ---- } + /** + * @return array + * @param query int + * @desc Container for mysql_fetch_assoc(). + */ function fetch_assoc($query) { *************** *** 168,171 **** --- 207,215 ---- } + /** + * @return array + * @param query int + * @desc Container for mysql_fetch_row(). + */ function fetch_row($query) { *************** *** 183,186 **** --- 227,234 ---- } + /** + * @return int + * @desc Container for mysql_affected_rows(). + */ function affected_rows() { if($this->ident_link == 0) |