Development

/branches/1.1/lib/action/sfActionStackEntry.class.php

You must first sign up to be able to contribute.

root/branches/1.1/lib/action/sfActionStackEntry.class.php

Revision 17858, 2.2 kB (checked in by FabianLange, 6 years ago)

[1.1, 1.2, 1.3] fixed some codeing standards (fixes #6376 - patch from gimler)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Rev Date
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  * (c) 2004-2006 Sean Kerr <sean@code-box.org>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * sfActionStackEntry represents information relating to a single sfAction request during a single HTTP request.
14  *
15  * @package    symfony
16  * @subpackage action
17  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
18  * @author     Sean Kerr <sean@code-box.org>
19  * @version    SVN: $Id$
20  */
21 class sfActionStackEntry
22 {
23   protected
24     $actionInstance = null,
25     $actionName     = null,
26     $moduleName     = null,
27     $presentation   = null;
28
29   /**
30    * Class constructor.
31    *
32    * @param string   $moduleName     A module name
33    * @param string   $actionName     An action name
34    * @param sfAction $actionInstance An sfAction implementation instance
35    */
36   public function __construct($moduleName, $actionName, $actionInstance)
37   {
38     $this->actionName     = $actionName;
39     $this->actionInstance = $actionInstance;
40     $this->moduleName     = $moduleName;
41   }
42
43   /**
44    * Retrieves this entry's action name.
45    *
46    * @return string An action name
47    */
48   public function getActionName()
49   {
50     return $this->actionName;
51   }
52
53   /**
54    * Retrieves this entry's action instance.
55    *
56    * @return sfAction An sfAction implementation instance
57    */
58   public function getActionInstance()
59   {
60     return $this->actionInstance;
61   }
62
63   /**
64    * Retrieves this entry's module name.
65    *
66    * @return string A module name
67    */
68   public function getModuleName()
69   {
70     return $this->moduleName;
71   }
72
73   /**
74    * Retrieves this entry's rendered view presentation.
75    *
76    * This will only exist if the view has processed and the render mode is set to sfView::RENDER_VAR.
77    *
78    * @return string Rendered view presentation
79    */
80   public function & getPresentation()
81   {
82     return $this->presentation;
83   }
84
85   /**
86    * Sets the rendered presentation for this action.
87    *
88    * @param string $presentation A rendered presentation.
89    */
90   public function setPresentation(&$presentation)
91   {
92     $this->presentation =& $presentation;
93   }
94 }
95
Note: See TracBrowser for help on using the browser.