Changeset 2378

Show
Ignore:
Timestamp:
03/29/2008 10:13:58 AM (8 months ago)
Author:
Geert
Message:

Deprecated Session->del() in favor of Session->delete().
Why? For the sake of API consistency with all other libraries.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Session.php

    r2171 r2378  
    214214                                        if ($state == 'old') 
    215215                                        { 
    216                                                 self::del($key); 
     216                                                self::delete($key); 
    217217                                                unset(self::$flash[$key]); 
    218218                                        } 
     
    396396        { 
    397397                $return = self::get($key); 
    398                 self::del($key); 
     398                self::delete($key); 
    399399 
    400400                return $return; 
     
    407407         * @return  void 
    408408         */ 
    409         public function del($keys) 
     409        public function delete($keys) 
    410410        { 
    411411                if (empty($keys)) 
     
    427427        } 
    428428 
     429        /** 
     430         * Delete one or more variables. 
     431         * Note! This method is deprecated in favor of delete(). 
     432         * 
     433         * @param   variable key(s)  $keys 
     434         * @return  void 
     435         */ 
     436        public function del($keys) 
     437        { 
     438                self::delete($keys); 
     439        } 
     440 
    429441} // End Session Class