Deprecating Cookie::del() Unifying to 'delete' method.

This commit is contained in:
mark_story 2009-08-27 00:33:24 -04:00
parent 5e8eb83f7d
commit bd3178b9fc

View file

@ -276,6 +276,13 @@ class CookieComponent extends Object {
} }
} }
/**
* @deprecated use delete()
**/
function del($key) {
return $this->delete($key);
}
/** /**
* Delete a cookie value * Delete a cookie value
* *
@ -289,7 +296,7 @@ class CookieComponent extends Object {
* @return void * @return void
* @access public * @access public
*/ */
function del($key) { function delete($key) {
if (empty($this->__values)) { if (empty($this->__values)) {
$this->read(); $this->read();
} }