From ae1c1995b2fec431afe7cca23b2697e1bef17baf Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 04:28:06 +0000 Subject: moved shortcut methods from TComponent to TControl. --- framework/core.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'framework/core.php') diff --git a/framework/core.php b/framework/core.php index e43b1168..93d19002 100644 --- a/framework/core.php +++ b/framework/core.php @@ -295,6 +295,14 @@ abstract class TModule extends TComponent implements IModule { $this->_id=$value; } + + /** + * @return TApplication current application instance + */ + public function getApplication() + { + return Prado::getApplication(); + } } /** @@ -346,6 +354,14 @@ abstract class TService extends TComponent implements IService public function run() { } + + /** + * @return TApplication current application instance + */ + public function getApplication() + { + return Prado::getApplication(); + } } /** -- cgit v1.2.3