Source for file ControllerCommand.php

Documentation is available at ControllerCommand.php

  1. <?php
  2.     /**
  3.      * ControllerCommand Class
  4.      *
  5.      * @copyright Copyright (c) 2007 Mirchev Ideas Ltd. All rights reserved.
  6.      * @package MIPHPF
  7.      */
  8.     
  9.     /**
  10.      * A controller command class
  11.      * Used to implement command design pattern
  12.      * 
  13.      * @copyright Copyright (c) 2007 Mirchev Ideas Ltd. All rights reserved.
  14.      * @package MIPHPF
  15.      */
  16.     class miControllerCommand {
  17.         const CONTROLLER_COMMAND_HTML 1;
  18.         const CONTROLLER_COMMAND_REDIRECT 2;
  19.         
  20.         protected $_commandType;
  21.         protected $_param;
  22.         
  23.         public function __construct($commandType$param)
  24.         {
  25.             $this->_commandType = $commandType;
  26.             $this->_param = $param;
  27.         }
  28.         
  29.         public function getCommandType()
  30.         {
  31.             return $this->_commandType;
  32.         }
  33.         
  34.         public function getParam()
  35.         {
  36.             return $this->_param;
  37.         }
  38.     }
  39. ?>

Documentation generated on Thu, 08 May 2008 16:57:14 +0300 by phpDocumentor 1.4.1