API > eden > cookie.php
View Source

class Eden_Cookie

General available methods for common cookie procedures.

  • Extends: Eden_Class
  • Implements: ArrayAccess, Iterator

Public Methods

public function clear()

Removes all cookies.

Returns Eden_Cookie

public function current()

Returns the current item For Iterator interface

Returns void

public function get($key = NULL)

Returns data

Arguments

  1. string|null

Returns mixed

public function key()

Returns th current position For Iterator interface

Returns void

public function next()

Increases the position For Iterator interface

Returns void

public function offsetExists($offset)

isset using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetGet($offset)

returns data using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function offsetSet($offset, $value)

Sets data using the ArrayAccess interface

Arguments

  1. number
  2. mixed

Returns void

public function offsetUnset($offset)

unsets using the ArrayAccess interface

Arguments

  1. number

Returns bool

public function remove($name)

Removes a cookie.

Arguments

  1. *string cookie name

Returns Eden_Cookie

public function rewind()

Rewinds the position For Iterator interface

Returns void

public function set($key, $data = NULL, $expires = 0, $path = NULL, $domain = NULL, $secure = false, $httponly = false)

Sets a cookie.

Arguments

  1. *string cookie name
  2. variable the data
  3. int expiration
  4. string path to make the cookie available
  5. string|null the domain

Returns this

public function setData(array $data, $expires = 0, $path = NULL, $domain = NULL, $secure = false, $httponly = false)

Sets a set of cookies.

Arguments

  1. *array the data in key value format
  2. int expiration
  3. string path to make the cookie available
  4. string|null the domain

Returns this

public function setSecure($key, $data = NULL, $expires = 0, $path = NULL, $domain = NULL)

Sets a secure cookie.

Arguments

  1. *string cookie name
  2. variable the data
  3. int expiration
  4. string path to make the cookie available
  5. string|null the domain

Returns this

public function setSecureData(array $data, $expires = 0, $path = NULL, $domain = NULL)

Sets a set of secure cookies.

Arguments

  1. *array the data in key value format
  2. int expiration
  3. string path to make the cookie available
  4. string|null the domain

Returns this

public function valid()

Validates whether if the index is set For Iterator interface

Returns void

class Eden_Cookie_Error

Cookie Errors


© 2012 Openovate Labs. All rights reserved.