Changeset 479 for trunk/lib/Lock.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Lock.inc.php
r478 r479 75 75 public function __construct($auth_object) 76 76 { 77 77 $app =& App::getInstance(); 78 78 79 79 if (!method_exists($auth_object, 'get') || !method_exists($auth_object, 'getUsername')) { … … 98 98 public function initDB($recreate_db=false) 99 99 { 100 101 100 $app =& App::getInstance(); 101 $db =& DB::getInstance(); 102 102 103 103 static $_db_tested = false; … … 160 160 public function getParam($param) 161 161 { 162 162 $app =& App::getInstance(); 163 163 164 164 if (array_key_exists($param, $this->_params)) { … … 181 181 public function select($record_table_or_lock_id, $record_key=null, $record_val=null) 182 182 { 183 184 183 $app =& App::getInstance(); 184 $db =& DB::getInstance(); 185 185 186 186 $this->initDB(); … … 233 233 public function isMine() 234 234 { 235 235 $db =& DB::getInstance(); 236 236 237 237 $this->initDB(); … … 261 261 public function set($record_table, $record_key, $record_val, $title='') 262 262 { 263 263 $db =& DB::getInstance(); 264 264 265 265 $this->initDB(); … … 307 307 public function remove() 308 308 { 309 310 309 $app =& App::getInstance(); 310 $db =& DB::getInstance(); 311 311 312 312 $this->initDB(); … … 329 329 public function removeAll($user_id=null) 330 330 { 331 332 331 $app =& App::getInstance(); 332 $db =& DB::getInstance(); 333 333 334 334 $this->initDB(); … … 353 353 public function _auto_timeout() 354 354 { 355 355 $db =& DB::getInstance(); 356 356 357 357 static $_timeout_run = false; … … 374 374 public function dieErrorPage() 375 375 { 376 376 $app =& App::getInstance(); 377 377 378 378 $app->dieURL(sprintf('%s?lock_id=%s&boomerang=%s', $this->getParam('error_url'), $this->data['lock_id'], urlencode(absoluteMe()))); … … 384 384 public function printErrorHTML() 385 385 { 386 386 $app =& App::getInstance(); 387 387 388 388 ?>
Note: See TracChangeset
for help on using the changeset viewer.