.

CookieSetCommand Class Reference
[Behaviour]

Sets a Cookie. More...

Inheritance diagram for CookieSetCommand:
CommandBase ICommand IAction ISerializable

List of all members.

Public Member Functions

  __construct ($name, $data, $duration)
  execute ()
  Executes commands.
  get_name ()
  Returns title of command.

Protected Attributes

  $data
  $duration
  $name

Detailed Description

Sets a Cookie.

Author:
Gerd Riesselmann

Definition at line 8 of file cookie.set.cmd.php.


Constructor & Destructor Documentation

CookieSetCommand::__construct ( name,
data,
duration  
)

Definition at line 13 of file cookie.set.cmd.php.

00013                                                              {
00014                 $this->name = $name;
00015                 $this->data = $data;
00016                 $this->duration = $duration;
00017         }

Member Function Documentation

CookieSetCommand::execute (  ) 

Executes commands.

Returns:
Status

Reimplemented from CommandBase.

Definition at line 28 of file cookie.set.cmd.php.

00028                                   {
00029                 Cookie::create($this->name, $this->data, $this->duration);
00030                 return parent::execute();
00031         }
CookieSetCommand::get_name (  ) 

Returns title of command.

Reimplemented from CommandBase.

Definition at line 36 of file cookie.set.cmd.php.

00036                                    {
00037                 return 'cookie.set';
00038         }       

Member Data Documentation

CookieSetCommand::$data [protected]

Definition at line 10 of file cookie.set.cmd.php.

CookieSetCommand::$duration [protected]

Definition at line 11 of file cookie.set.cmd.php.

CookieSetCommand::$name [protected]

Definition at line 9 of file cookie.set.cmd.php.


The documentation for this class was generated from the following file: