Class Sylar_Cookie

Description

Cookie

Class to use cookie

Located in /sylar/classes/common/security/Cookie.php (line 38)


	
			
Method Summary
 void __construct ([string $domain = null], [string $directory = null], [string $keyPrefix = null])
 void __destruct ()
 void delete (string $sKey, [boolean $fIngorePrefix = false])
 boolean exists (string $sKey, [boolean $fIngorePrefix = false])
 mixed get (string $sKey, [boolean $fIngorePrefix = false])
 string getDomain ()
 int getExpireTime ()
 string getKeyPrefix ()
 string getPathOnServer ()
 boolean set (string $sKey, mixed $values, [int $expireTime = null], [boolean $fIngorePrefix = false])
 void setDomain (string $sDomain)
 void setExpireTime (int $iExpireTime)
 void setKeyPrefix (string $sKeyPrefix)
 void setPathOnServer (string $sPathOnServer)
Methods
Constructor __construct (line 73)

Class constructor

void __construct ([string $domain = null], [string $directory = null], [string $keyPrefix = null])
  • string $domain
  • string $directory
  • string $keyPrefix
Destructor __destruct (line 90)
void __destruct ()
delete (line 243)

Delete specified cookie

  • access: public
void delete (string $sKey, [boolean $fIngorePrefix = false])
  • string $sKey
  • boolean $fIngorePrefix: if true ignore eventually key prefix
exists (line 227)

Check if cookie exists return true if the cookie exists, false otherwise

  • access: public
boolean exists (string $sKey, [boolean $fIngorePrefix = false])
  • string $sKey
  • boolean $fIngorePrefix: if true ignore eventually key prefix
get (line 210)

Get cookie value It returns the value of specified cookie

  • access: public
mixed get (string $sKey, [boolean $fIngorePrefix = false])
  • string $sKey
  • boolean $fIngorePrefix: if true ignore eventually key prefix
getDomain (line 162)
  • access: public
string getDomain ()
getExpireTime (line 146)
  • access: public
int getExpireTime ()
getKeyPrefix (line 130)
  • access: public
string getKeyPrefix ()
getPathOnServer (line 114)
  • access: public
string getPathOnServer ()
set (line 185)

Set and create cookie It set cookie with all parameters managed by this object.

  • access: public
boolean set (string $sKey, mixed $values, [int $expireTime = null], [boolean $fIngorePrefix = false])
  • string $sKey
  • mixed $values
  • int $expireTime
  • boolean $fIngorePrefix: if true ignore eventually key prefix
setDomain (line 155)
  • access: public
void setDomain (string $sDomain)
  • string $sDomain
setExpireTime (line 139)
  • access: public
void setExpireTime (int $iExpireTime)
  • int $iExpireTime
setKeyPrefix (line 123)
  • access: public
void setKeyPrefix (string $sKeyPrefix)
  • string $sKeyPrefix
setPathOnServer (line 107)
  • access: public
void setPathOnServer (string $sPathOnServer)
  • string $sPathOnServer

Documentation generated on Thu, 24 Apr 2008 16:14:13 +0200 by phpDocumentor 1.3.0RC3