Show
Ignore:
Timestamp:
10/26/09 12:36:49 (9 months ago)
Author:
wbond
Message:

BackwardsCompatibilityBreak - Removed the $prefix parameter from the methods fSession::delete(), fSession::get() and fSession::set()

Fixed ticket #302 - added the method fSession::add()

Fixed ticket #303 - added a second parameter to fSession::setLength() and added fSession::enablePersistence()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fMessaging.php

    r632 r721 Hide Line Numbers
    1010 * @link       http://flourishlib.com/fMessaging 
    1111 *  
    12  * @version    1.0.0b5 
     12 * @version    1.0.0b6 
     13 * @changes    1.0.0b6  Updated class to use new fSession API [wb, 2009-10-23] 
    1314 * @changes    1.0.0b5  Made the `$recipient` parameter optional for all methods [wb, 2009-07-08] 
    1415 * @changes    1.0.0b4  Added support for `'*'` and arrays of names to ::check() [wb, 2009-06-02]  
     
    6364        } 
    6465         
    65         return fSession::get($name, NULL, __CLASS__ . '::' . $recipient . '::') !== NULL; 
     66        return fSession::get(__CLASS__ . '::' . $recipient . '::' . $name, NULL) !== NULL; 
    6667    } 
    6768     
     
    8586        } 
    8687         
    87         fSession::set($name, $message, __CLASS__ . '::' . $recipient . '::'); 
     88        fSession::set(__CLASS__ . '::' . $recipient . '::' . $name, $message); 
    8889    } 
    8990     
     
    115116        } 
    116117         
    117         $prefix  = __CLASS__ . '::' . $recipient . '::'
    118         $message = fSession::get($name, NULL, $prefix); 
    119         fSession::delete($name, $prefix); 
     118        $key     = __CLASS__ . '::' . $recipient . '::' . $name
     119        $message = fSession::get($key, NULL); 
     120        fSession::delete($key); 
    120121        return $message; 
    121122    }