You are here

public static function secureCookieBasic::decode in Secure Cookie Data 7.2

Same name and namespace in other branches
  1. 7 secure_cookie_data.class.inc \secureCookieBasic::decode()

Decodes the data as stored in the cookie.

Parameters

string $data: The data as stored in the cookie.

Return value

object The object

2 calls to secureCookieBasic::decode()
secureCookieBasic::get in ./secure_cookie_data.class.inc
Getter for the class.
secureCookieTreeTwo::set_tree in modules/secure_cookie_data_tree_two.class.inc
Setter for the class.

File

./secure_cookie_data.class.inc, line 119
secure_cookie.class.inc @author António P. P. Almeida <appa@perusio.net> @date Wed Dec 21 03:17:53 2011

Class

secureCookieBasic

Code

public static function decode($data = NULL) {
  return json_decode(base64_decode(urldecode($data)));
}