Diff of /mambo/branches/4.6/includes/database.php
Parent Directory
|
Revision Log
|
Patch
| revision 232, Sat Feb 4 20:36:36 2006 UTC | revision 238, Tue Feb 7 18:03:58 2006 UTC | |
|---|---|---|
| # | Line 657 | Line 657 |
| 657 | * @return null|string null is operation was satisfactory, otherwise returns an error | * @return null|string null is operation was satisfactory, otherwise returns an error |
| 658 | */ | */ |
| 659 | function bind( $array, $ignore="" ) { | function bind( $array, $ignore="" ) { |
| 660 | $database = mamboDatabase::getInstance(); | $database =& mamboDatabase::getInstance(); |
| 661 | if (is_array($array)) return $database->mosBindArrayToObject($array, $this, $ignore); | if (is_array($array)) return $database->mosBindArrayToObject($array, $this, $ignore); |
| 662 | $this->_error = strtolower(get_class( $this ))."::bind failed."; | $this->_error = strtolower(get_class( $this ))."::bind failed."; |
| 663 | return false; | return false; |
| # | Line 920 | Line 920 |
| 920 | } | } |
| 921 | ||
| 922 | function getDatabase () { | function getDatabase () { |
| 923 | if (!is_object($this->database)) $this->database = mamboDatabase::getInstance(); | if (!is_object($this->database)) $this->database =& mamboDatabase::getInstance(); |
| 924 | return $this->database; | return $this->database; |
| 925 | } | } |
| 926 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

