Class keep

Description

Keep class A simple class for remembering variables or forgetting them using the PHP session handling routines..

Located in /keep-defs.php (line 42)


	
			
Variable Summary
 mixed $cookiename
Method Summary
 keep keep ([string $name = "SESSIONKEEP"], integer $expiresecs)
 void delete ()
 void forget (string $varnames)
 void forgetall ()
 void remember (string $varnames)
Variables
mixed $cookiename = "" (line 45)

The name of the cookie to use

Methods
Constructor keep (line 53)

Constructor Create a new keep object. Sets basic field attributes.

keep keep ([string $name = "SESSIONKEEP"], integer $expiresecs)
  • string $name: The name of the keep. This is used as the cookie name.
  • integer $expiresecs: Lifetime of the keep cookie
delete (line 111)

Delete registered variables.

Unset all vars, and delete the session cookie.

void delete ()
forget (line 90)

Forget variable names Un-register the given comma-delimited list of varnames in the current session..

void forget (string $varnames)
  • string $varnames: A list of comma-delimited var names to forget from the keep
forgetall (line 103)

Unset all registered variables.

void forgetall ()
remember (line 72)

Remember variable names Register the given comma-delimited list of varnames in the current session..

void remember (string $varnames)
  • string $varnames: A list of comma-delimited var names to remember in the keep

Documentation generated by phpDocumentor 1.3.0RC3