Changeset 8
- Timestamp:
- Aug 30, 2005 9:32:53 PM (19 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r7 r8 162 162 function setParam($param=null) 163 163 { 164 if (!is _a($this, 'App')) {164 if (!isset($this) || !is_a($this, 'App')) { 165 165 $this =& App::getInstance(); 166 166 } … … 181 181 function &getParam($param=null) 182 182 { 183 if (!is _a($this, 'App')) {183 if (!isset($this) || !is_a($this, 'App')) { 184 184 $this =& App::getInstance(); 185 185 } … … 353 353 function raiseMsg($message, $type=MSG_NOTICE, $file=null, $line=null) 354 354 { 355 if (!is _a($this, 'App')) {355 if (!isset($this) || !is_a($this, 'App')) { 356 356 $this =& App::getInstance(); 357 357 } … … 382 382 function printRaisedMessages() 383 383 { 384 if (!is _a($this, 'App')) {384 if (!isset($this) || !is_a($this, 'App')) { 385 385 $this =& App::getInstance(); 386 386 } … … 439 439 function logMsg($message, $priority=LOG_INFO, $file=null, $line=null) 440 440 { 441 if (!is _a($this, 'App')) {441 if (!isset($this) || !is_a($this, 'App')) { 442 442 $this =& App::getInstance(); 443 443 } … … 561 561 function oHREF($url='', $carry_args=null, $always_include_sid=false) 562 562 { 563 if (!is _a($this, 'App')) {563 if (!isset($this) || !is_a($this, 'App')) { 564 564 $this =& App::getInstance(); 565 565 } … … 683 683 function printHiddenSession($carry_args=null) 684 684 { 685 if (!is _a($this, 'App')) {685 if (!isset($this) || !is_a($this, 'App')) { 686 686 $this =& App::getInstance(); 687 687 } … … 768 768 function dieURL($url, $carry_args=null, $always_include_sid=false) 769 769 { 770 if (!is _a($this, 'App')) {770 if (!isset($this) || !is_a($this, 'App')) { 771 771 $this =& App::getInstance(); 772 772 } … … 806 806 function dieBoomerangURL($id=null, $carry_args=null) 807 807 { 808 if (!is _a($this, 'App')) {808 if (!isset($this) || !is_a($this, 'App')) { 809 809 $this =& App::getInstance(); 810 810 } … … 849 849 function setBoomerangURL($url=null, $id=null) 850 850 { 851 if (!is _a($this, 'App')) {851 if (!isset($this) || !is_a($this, 'App')) { 852 852 $this =& App::getInstance(); 853 853 } … … 890 890 function getBoomerangURL($id=null) 891 891 { 892 if (!is _a($this, 'App')) {892 if (!isset($this) || !is_a($this, 'App')) { 893 893 $this =& App::getInstance(); 894 894 } … … 918 918 function deleteBoomerangURL($id=null) 919 919 { 920 if (!is _a($this, 'App')) {920 if (!isset($this) || !is_a($this, 'App')) { 921 921 $this =& App::getInstance(); 922 922 } … … 941 941 function validBoomerangURL($id=null, $use_nonspecificboomerang=false) 942 942 { 943 if (!is _a($this, 'App')) {943 if (!isset($this) || !is_a($this, 'App')) { 944 944 $this =& App::getInstance(); 945 945 } … … 990 990 function sslOn() 991 991 { 992 if (!is _a($this, 'App')) {992 if (!isset($this) || !is_a($this, 'App')) { 993 993 $this =& App::getInstance(); 994 994 } -
trunk/lib/DB.inc.php
r7 r8 85 85 function setParam($params) 86 86 { 87 if (!is _a($this, 'DB')) {87 if (!isset($this) || !is_a($this, 'DB')) { 88 88 $this =& DB::getInstance(); 89 89 } … … 108 108 function getParam($param) 109 109 { 110 if (!is _a($this, 'DB')) {110 if (!isset($this) || !is_a($this, 'DB')) { 111 111 $this =& DB::getInstance(); 112 112 } … … 129 129 function connect() 130 130 { 131 if (!is _a($this, 'DB')) {131 if (!isset($this) || !is_a($this, 'DB')) { 132 132 $this =& DB::getInstance(); 133 133 } … … 175 175 function close() 176 176 { 177 if (!is _a($this, 'DB')) {177 if (!isset($this) || !is_a($this, 'DB')) { 178 178 $this =& DB::getInstance(); 179 179 } … … 196 196 function getDBH() 197 197 { 198 if (!is _a($this, 'DB')) {198 if (!isset($this) || !is_a($this, 'DB')) { 199 199 $this =& DB::getInstance(); 200 200 } … … 231 231 static $_query_count = 0; 232 232 233 if (!is _a($this, 'DB')) {233 if (!isset($this) || !is_a($this, 'DB')) { 234 234 $this =& DB::getInstance(); 235 235 } … … 277 277 function tableExists($table, $use_cached_results=true) 278 278 { 279 if (!is _a($this, 'DB')) {279 if (!isset($this) || !is_a($this, 'DB')) { 280 280 $this =& DB::getInstance(); 281 281 } … … 311 311 function columnExists($table, $columns, $strict=true, $use_cached_results=true) 312 312 { 313 if (!is _a($this, 'DB')) {313 if (!isset($this) || !is_a($this, 'DB')) { 314 314 $this =& DB::getInstance(); 315 315 } -
trunk/lib/DBSessionHandler.inc.php
r7 r8 62 62 } 63 63 64 if (!is _a($this->db, 'DB') || !$this->db->isConnected()) {64 if (!isset($this) || !is_a($this->db, 'DB') || !$this->db->isConnected()) { 65 65 trigger_error('Invalid DB object or unable to connect to database.', E_USER_ERROR); 66 66 } -
trunk/lib/Nav.inc.php
r7 r8 109 109 * @return bool true on success, false on failure 110 110 */ 111 function getFeature($feature, $page_id=null )111 function getFeature($feature, $page_id=null, $default=null) 112 112 { 113 113 if (!isset($page_id)) { … … 126 126 return $this->pages[$page_id]['features'][$feature]; 127 127 } 128 } else { 129 return $default; 128 130 } 129 131 }
Note: See TracChangeset
for help on using the changeset viewer.