Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/DBSessionHandler.inc.php

    r398 r468  
    3232class DBSessionHandler {
    3333
    34     var $db; // DB object.
     34    public $db; // DB object.
    3535
    36     var $_params = array(
     36    private $_params = array(
    3737        'db_table' => 'session_tbl',
    3838
     
    5151     * @since   18 Jul 2005 11:02:50
    5252     */
    53     function DBSessionHandler($db, $params=array())
     53    public function __construct($db, $params=array())
    5454    {
    5555        $app =& App::getInstance();
     
    9494     * @since   26 Aug 2005 17:09:36
    9595     */
    96     function initDB($recreate_db=false)
     96    public function initDB($recreate_db=false)
    9797    {
    9898        $app =& App::getInstance();
     
    121121    }
    122122
    123     function dbSessionOpen($save_path, $sess_name)
     123    public function dbSessionOpen($save_path, $sess_name)
    124124    {
    125125        return true;
    126126    }
    127127
    128     function dbSessionClose()
     128    public function dbSessionClose()
    129129    {       
    130130        return true;
    131131    }
    132132
    133     function dbSessionRead($session_id)
     133    public function dbSessionRead($session_id)
    134134    {
    135135        // Select the data belonging to session $session_id from the session table
     
    146146    }
    147147
    148     function dbSessionWrite($session_id, $session_data)
     148    public function dbSessionWrite($session_id, $session_data)
    149149    {
    150150        // Write the serialized session data ($session_data) to the session table
     
    154154    }
    155155
    156     function dbSessionDestroy($session_id)
     156    public function dbSessionDestroy($session_id)
    157157    {
    158158        // Delete from the table all data for the session $session_id
     
    162162    }
    163163
    164     function dbSessionGarbage($max_lifetime=72000)
     164    public function dbSessionGarbage($max_lifetime=72000)
    165165    {
    166166        // Delete old values from the session table.
     
    171171}
    172172
    173 ?>
Note: See TracChangeset for help on using the changeset viewer.