Ignore:
Timestamp:
Jul 30, 2014 10:43:49 PM (10 years ago)
Author:
anonymous
Message:

Changed private methods and properties to protected. A few minor bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Version.inc.php

    r479 r484  
    4040
    4141    // A place to keep an object instance for the singleton pattern.
    42     private static $instance = null;
     42    protected static $instance = null;
    4343
    4444    // Configuration of this object.
    45     private $_params = array(
     45    protected $_params = array(
    4646        'max_qty' => 100, // Never have more than this many versions of each record.
    4747        'min_qty' => 25, // Keep at least this many versions of each record.
     
    5757
    5858    // Auth_SQL object from which to access a current user_id.
    59     private $_auth;
     59    protected $_auth;
    6060
    6161    /**
     
    116116            }
    117117            $db->query("CREATE TABLE IF NOT EXISTS " . $db->escapeString($this->getParam('db_table')) . " (
    118                 version_id INT NOT NULL AUTO_INCREMENT,
     118                version_id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
    119119                record_table VARCHAR(255) NOT NULL DEFAULT '',
    120120                record_key VARCHAR(255) NOT NULL DEFAULT '',
     
    126126                saved_by_user_id SMALLINT(11) NOT NULL DEFAULT '0',
    127127                version_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    128                 PRIMARY KEY (version_id),
    129128                KEY record_table (record_table),
    130129                KEY record_key (record_key),
Note: See TracChangeset for help on using the changeset viewer.