1. sfActionStackEntry.class.php
  2. /** * sfActionStackEntry represents information relating to a single sfAction request during a single HTTP request. * * @package symfony * @subpackage action * @author Fabien Potencier * @author Sean Kerr * @version SVN: $Id: sfActionStackEntry.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */
  3. class sfActionStackEntry
  4. {
  5. protected
  6. $actionInstance = null,
  7. $actionName = null,
  8. $moduleName = null,
  9. $presentation = null;
  10. /**
  11. * Class constructor.
  12. *
  13. * @param string $moduleName A module name
  14. * @param string $actionName An action name
  15. * @param sfAction $actionInstance An sfAction implementation instance
  16. */
  17. public function __construct($moduleName, $actionName, $actionInstance)
  18. {
  19. $this->actionName = $actionName;
  20. $this->actionInstance = $actionInstance;
  21. $this->moduleName = $moduleName;
  22. }
  23. /**
  24. * Retrieves this entry's action name.
  25. *
  26. * @return string An action name
  27. */
  28. public function getActionName()
  29. {
  30. return $this->actionName;
  31. }
  32. /**
  33. * Retrieves this entry's action instance.
  34. *
  35. * @return sfAction An sfAction implementation instance
  36. */
  37. public function getActionInstance()
  38. {
  39. return $this->actionInstance;
  40. }
  41. /**
  42. * Retrieves this entry's module name.
  43. *
  44. * @return string A module name
  45. */
  46. public function getModuleName()
  47. {
  48. return $this->moduleName;
  49. }
  50. /**
  51. * Retrieves this entry's rendered view presentation.
  52. *
  53. * This will only exist if the view has processed and the render mode is set to sfView::RENDER_VAR.
  54. *
  55. * @return string Rendered view presentation
  56. */
  57. public function & getPresentation()
  58. {
  59. return $this->presentation;
  60. }
  61. /**
  62. * Sets the rendered presentation for this action.
  63. *
  64. * @param string $presentation A rendered presentation.
  65. */
  66. public function setPresentation(&$presentation)
  67. {
  68. $this->presentation =& $presentation;
  69. }
  70. }

Debug toolbar