Changeset 484 for trunk/lib/Lock.inc.php


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/Lock.inc.php

    r479 r484  
    3232
    3333    // A place to keep an object instance for the singleton pattern.
    34     private static $instance = null;
     34    protected static $instance = null;
    3535
    3636    // Configuration of this object.
    37     private $_params = array(
     37    protected $_params = array(
    3838        'timeout' => 600,
    3939        'auto_timeout' => 1800,
     
    4747
    4848    // Store lock data from DB.
    49     private $data = array();
     49    protected $data = array();
    5050
    5151    // Auth_SQL object from which to access a current user_id.
    52     private $_auth;
     52    protected $_auth;
    5353
    5454    /**
     
    109109            }
    110110            $db->query("CREATE TABLE IF NOT EXISTS " . $db->escapeString($this->getParam('db_table')) . " (
    111                 lock_id int NOT NULL auto_increment,
     111                lock_id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
    112112                record_table varchar(255) NOT NULL default '',
    113113                record_key varchar(255) NOT NULL default '',
     
    116116                set_by_admin_id smallint(11) NOT NULL default '0',
    117117                lock_datetime datetime NOT NULL default '0000-00-00 00:00:00',
    118                 PRIMARY KEY (lock_id),
    119118                KEY record_table (record_table),
    120119                KEY record_key (record_key),
Note: See TracChangeset for help on using the changeset viewer.