Development

Changeset 8059

You must first sign up to be able to contribute.

Changeset 8059

Show
Ignore:
Timestamp:
03/23/08 19:55:47 (7 months ago)
Author:
fabien
Message:

fixed sfCreoleStorage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/creole/storage/sfCreoleSessionStorage.class.php

    r7792 r8059  
    3939  { 
    4040    // get table/column 
    41     $db_table  = $this->getParameter('db_table')
    42     $db_id_col = $this->getParameter('db_id_col', 'sess_id')
     41    $db_table  = $this->options['db_table']
     42    $db_id_col = $this->options['db_id_col']
    4343 
    4444    // delete the record associated with this id 
     
    7171  { 
    7272    // get table/column 
    73     $db_table    = $this->getParameter('db_table')
    74     $db_time_col = $this->getParameter('db_time_col', 'sess_time')
     73    $db_table    = $this->options['db_table']
     74    $db_time_col = $this->options['db_time_col']
    7575 
    7676    // delete the record associated with this id 
     
    101101  { 
    102102    // get table/columns 
    103     $db_table    = $this->getParameter('db_table')
    104     $db_data_col = $this->getParameter('db_data_col', 'sess_data')
    105     $db_id_col   = $this->getParameter('db_id_col', 'sess_id')
    106     $db_time_col = $this->getParameter('db_time_col', 'sess_time')
     103    $db_table    = $this->options['db_table']
     104    $db_data_col = $this->options['db_data_col']
     105    $db_id_col   = $this->options['db_id_col']
     106    $db_time_col = $this->options['db_time_col']
    107107 
    108108    try 
     
    155155  { 
    156156    // get table/column 
    157     $db_table    = $this->getParameter('db_table')
    158     $db_data_col = $this->getParameter('db_data_col', 'sess_data')
    159     $db_id_col   = $this->getParameter('db_id_col', 'sess_id')
    160     $db_time_col = $this->getParameter('db_time_col', 'sess_time')
     157    $db_table    = $this->options['db_table']
     158    $db_data_col = $this->options['db_data_col']
     159    $db_id_col   = $this->options['db_id_col']
     160    $db_time_col = $this->options['db_time_col']
    161161 
    162162    $sql = 'UPDATE '.$db_table.' SET '.$db_data_col.'=?, '.$db_time_col.' = '.time().' WHERE '.$db_id_col.'=?';