[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/include/ -> Cookie.class.php (sommaire)

(pas de description)

Poids: 226 lignes (5 kb)
Inclus ou requis: 5 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Cookie:: (14 méthodes):
  Cookie()
  setExpire()
  getContent()
  isDefined()
  getSize()
  toString()
  get()
  getVar()
  setVar()
  save()
  setCookie()
  delete()
  p3p()
  put()


Classe: Cookie  - X-Ref

Class that sets a cookie, read values, saves arrays in cookie, etc.

Cookie($nameCookie='pmv_cookie_default')   X-Ref
Constructor

param: string $nameCookie

setExpire( $ts )   X-Ref
Pas de description

getContent()   X-Ref
returns array contained in the cookie

return: array

isDefined()   X-Ref
returns true if the cookie already exist, false else

return: bool

getSize()   X-Ref
returns the size of the cookie content, in bytes


toString()   X-Ref
Pas de description

get()   X-Ref
returns the cookie's content array unserialized

return: array

getVar($varName)   X-Ref
returns the $varName value from the array in the cookie

param: string $varName
return: string|false

setVar($varName, $varValue)   X-Ref
assigns a value to a variable in the cookie array

param: string $varName variable name
param: all $varValue

save()   X-Ref
saves the cookie on visitor computer, called once at the end of the whole process

return: bool

setCookie($Name, $Value, $Expires, $Path = '', $Domain = '', $Secure = false, $HTTPOnly = false)   X-Ref
taken from http://usphp.com/manual/en/function.setcookie.php
fix expires bug for IE users (should i say expected to fix the bug in 2.3 b2)
TODO fix domain bug but we don't use it yet


delete()   X-Ref
Pas de description

p3p()   X-Ref
Pas de description

put($uniqId='')   X-Ref
Init the phpmv cookie used in logging. Called when no previous phpmv cookie detected.

param: string $uniqId Old uniqId if exists
return: string uniqId assigned



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics