Changeset 479 for trunk/lib/Version.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Version.inc.php
r478 r479 82 82 public function __construct($auth_object) 83 83 { 84 84 $app =& App::getInstance(); 85 85 86 86 if (!method_exists($auth_object, 'get') || !method_exists($auth_object, 'getUsername')) { … … 105 105 public function initDB($recreate_db=false) 106 106 { 107 108 107 $app =& App::getInstance(); 108 $db =& DB::getInstance(); 109 109 110 110 static $_db_tested = false; … … 173 173 public function getParam($param) 174 174 { 175 175 $app =& App::getInstance(); 176 176 177 177 if (array_key_exists($param, $this->_params)) { … … 195 195 public function create($record_table, $record_key, $record_val, $title='', $notes='') 196 196 { 197 198 197 $app =& App::getInstance(); 198 $db =& DB::getInstance(); 199 199 200 200 $this->initDB(); … … 256 256 public function restore($version_id) 257 257 { 258 259 258 $app =& App::getInstance(); 259 $db =& DB::getInstance(); 260 260 261 261 $this->initDB(); … … 317 317 public function deleteOld($record_table, $record_key, $record_val) 318 318 { 319 319 $db =& DB::getInstance(); 320 320 321 321 $this->initDB(); … … 384 384 public function getList($record_table, $record_key, $record_val) 385 385 { 386 386 $db =& DB::getInstance(); 387 387 388 388 $this->initDB(); … … 421 421 public function getVerson($version_id) 422 422 { 423 423 $db =& DB::getInstance(); 424 424 425 425 $this->initDB(); … … 442 442 public function getData($version_id) 443 443 { 444 444 $db =& DB::getInstance(); 445 445 446 446 $this->initDB(); … … 468 468 public function getCurrent($record_table, $record_key, $record_val) 469 469 { 470 470 $db =& DB::getInstance(); 471 471 472 472 $this->initDB();
Note: See TracChangeset
for help on using the changeset viewer.