gyro/core/behaviour/commands/generics/cookie.delete.cmd.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Delete a Cookie 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Behaviour 00007 */ 00008 class CookieDeleteCommand extends CommandBase { 00009 protected $name; 00010 00011 public function __construct($name) { 00012 $this->name = $name; 00013 } 00014 00015 // ************************************ 00016 // ICommand 00017 // ************************************ 00018 00019 /** 00020 * Executes commands 00021 * 00022 * @return Status 00023 */ 00024 public function execute() { 00025 Cookie::delete($this->name); 00026 return parent::execute(); 00027 } 00028 00029 /** 00030 * Returns title of command. 00031 */ 00032 public function get_name() { 00033 return 'cookie.delete'; 00034 } 00035 }