Changeset 439 for branches/eli_branch/lib/Version.inc.php
- Timestamp:
- Nov 30, 2013 7:30:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/lib/Version.inc.php
r396 r439 40 40 41 41 // Configuration of this object. 42 var$_params = array(42 private $_params = array( 43 43 'max_qty' => 100, // Never have more than this many versions of each record. 44 44 'min_qty' => 25, // Keep at least this many versions of each record. … … 54 54 55 55 // Auth_SQL object from which to access a current user_id. 56 var$_auth;56 private $_auth; 57 57 58 58 /** … … 63 63 * @static 64 64 */ 65 static function &getInstance($auth_object)65 public static function &getInstance($auth_object) 66 66 { 67 67 static $instance = null; … … 79 79 * @param mixed $auth_object An Auth_SQL object. 80 80 */ 81 function Version($auth_object)81 public function __construct($auth_object) 82 82 { 83 83 $app =& App::getInstance(); … … 102 102 * @since 26 Aug 2005 17:09:36 103 103 */ 104 function initDB($recreate_db=false)104 public function initDB($recreate_db=false) 105 105 { 106 106 $app =& App::getInstance(); … … 155 155 * @param array $params Array of param keys and values to set. 156 156 */ 157 function setParam($params=null)157 public function setParam($params=null) 158 158 { 159 159 if (isset($params) && is_array($params)) { … … 170 170 * @return mixed Configured parameter value. 171 171 */ 172 function getParam($param)172 public function getParam($param) 173 173 { 174 174 $app =& App::getInstance(); … … 192 192 * @return int The id for the version (mysql last insert id). 193 193 */ 194 function create($record_table, $record_key, $record_val, $title='', $notes='')194 public function create($record_table, $record_key, $record_val, $title='', $notes='') 195 195 { 196 196 $app =& App::getInstance(); … … 253 253 * @return int The id for the version (mysql last insert id). 254 254 */ 255 function restore($version_id)255 public function restore($version_id) 256 256 { 257 257 $app =& App::getInstance(); … … 314 314 * @return mixed Array of versions, or false if none. 315 315 */ 316 function deleteOld($record_table, $record_key, $record_val)316 public function deleteOld($record_table, $record_key, $record_val) 317 317 { 318 318 $db =& DB::getInstance(); … … 381 381 * @return mixed Array of versions, or false if none. 382 382 */ 383 function getList($record_table, $record_key, $record_val)383 public function getList($record_table, $record_key, $record_val) 384 384 { 385 385 $db =& DB::getInstance(); … … 418 418 * @return mixed Array of data saved in version, or false if none. 419 419 */ 420 function getVerson($version_id)420 public function getVerson($version_id) 421 421 { 422 422 $db =& DB::getInstance(); … … 439 439 * @return mixed Array of data saved in version, or false if none. 440 440 */ 441 function getData($version_id)441 public function getData($version_id) 442 442 { 443 443 $db =& DB::getInstance(); … … 465 465 * @return mixed Array of data saved in version, or false if none. 466 466 */ 467 function getCurrent($record_table, $record_key, $record_val)467 public function getCurrent($record_table, $record_key, $record_val) 468 468 { 469 469 $db =& DB::getInstance(); … … 484 484 485 485 } // End of class. 486 ?>
Note: See TracChangeset
for help on using the changeset viewer.