It returns the active page|form|action.
*/
protected $executed = false;
+ /**
+ * controller object
+ * @var object
+ */
+ protected $controller = null;
+
/**
* Creates a new request object.
*
public function execute() {
if (!$this->executed) {
$this->executed = true;
- new $this->className();
+ $this->controller = new $this->className();
}
}
public function getPageType() {
return $this->pageType;
}
+
+ /**
+ * Returns the controller of this request.
+ *
+ * @return object
+ */
+ public function getController() {
+ return $this->controller;
+ }
}