Zikula_Core
[ class tree: Zikula_Core ] [ index: Zikula_Core ] [ all elements ]

Class: CookieUtil

Source Location: /includes/pnobjlib/CookieUtil.class.php

Class Overview


CookieUtil


Methods



Class Details

[line 20]
CookieUtil



[ Top ]


Class Methods


method deleteCookie [line 79]

bool deleteCookie( string $name)

Delete given cookie can be called multiple times, but must be other output is sent to browser.



Tags:

author:  Drak


Parameters:

string   $name   nmame of cookie

[ Top ]

method getCookie [line 61]

mixed getCookie( string $name, [bool $signed = true], [bool $default = ''])

Get a cookie



Tags:

return:  cookie value as string or bool false
author:  Drak


Parameters:

string   $name   name of cookie
bool   $signed   override system setting to use signatures
bool   $default   default value

[ Top ]

method setCookie [line 35]

bool setCookie( string $name, [string $value = ''], [int $expires = null], [string $path = null], [string $domain = null], [bool $secure = null], [bool $signed = true])

Set a cookie value



Tags:

author:  Drak


Parameters:

string   $name   name of cookie
string   $value  
int   $expires   unix epoch dat for expiry
string   $path  
string   $domain   domain must be at least .domain.tld
bool   $secure   to set if cookie must only be set over existing https connection
bool   $signed   override system setting to use signatures

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:44:04 +0200 by phpDocumentor 1.4.1