Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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: sfActionStackEntry.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
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
}