Changeset 137 in subversion
- Timestamp:
- Feb 19, 2006 12:39:26 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/include/rcube_db.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_db.inc
r100 r137 36 36 * @author David Saez Padros <david@ols.es> 37 37 * @author Thomas Bruederli <roundcube@gmail.com> 38 * @version 1.1 438 * @version 1.16 39 39 * @link http://pear.php.net/package/DB 40 40 */ … … 305 305 { 306 306 $result = $this->_get_result($res_id); 307 307 return $this->_fetch_row($result, DB_FETCHMODE_ASSOC); 308 } 309 310 311 /** 312 * Get an index array for one row 313 * If no query handle is specified, the last query will be taken as reference 314 * 315 * @param number Optional query handle identifier 316 * @return mixed Array with col values or FALSE on failure 317 * @access public 318 */ 319 function fetch_array($res_id=NULL) 320 { 321 $result = $this->_get_result($res_id); 322 return $this->_fetch_row($result, DB_FETCHMODE_ORDERED); 323 } 324 325 326 /** 327 * Get co values for a result row 328 * 329 * @param object Query result handle 330 * @param number Fetch mode identifier 331 * @return mixed Array with col values or FALSE on failure 332 * @access private 333 */ 334 function _fetch_row($result, $mode) 335 { 308 336 if (DB::isError($result)) 309 337 { … … 313 341 } 314 342 315 return $result->fetchRow( DB_FETCHMODE_ASSOC);316 } 317 343 return $result->fetchRow($mode); 344 } 345 318 346 319 347 /**
Note: See TracChangeset
for help on using the changeset viewer.
