equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Controller |
|
17 * @subpackage Request |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** Zend_Controller_Request_Abstract */ |
|
24 require_once 'Zend/Controller/Request/Abstract.php'; |
|
25 |
|
26 /** |
|
27 * @category Zend |
|
28 * @package Zend_Controller |
|
29 * @subpackage Request |
|
30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
31 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
32 */ |
|
33 class Zend_Controller_Request_Simple extends Zend_Controller_Request_Abstract |
|
34 { |
|
35 |
|
36 public function __construct($action = null, $controller = null, $module = null, array $params = array()) |
|
37 { |
|
38 if ($action) { |
|
39 $this->setActionName($action); |
|
40 } |
|
41 |
|
42 if ($controller) { |
|
43 $this->setControllerName($controller); |
|
44 } |
|
45 |
|
46 if ($module) { |
|
47 $this->setModuleName($module); |
|
48 } |
|
49 |
|
50 if ($params) { |
|
51 $this->setParams($params); |
|
52 } |
|
53 } |
|
54 |
|
55 } |