| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 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 |
|
|---|