/** * Get a $_COOKIE in a typesafe manner * * Performs the same job as getGet(), but using the superglobal $_COOKIE * array. * * @param string $id The cookie identifier * @param string $type The expected type * @return mixed|null The content of the requested cookie or null on errors * @see getGet(),getPost() */ public static function getCookie($id, $type) { return TIP::_getTyped($id, $type, $_COOKIE); }