diff options
author | xue <> | 2006-02-17 04:28:06 +0000 |
---|---|---|
committer | xue <> | 2006-02-17 04:28:06 +0000 |
commit | ae1c1995b2fec431afe7cca23b2697e1bef17baf (patch) | |
tree | 43fb70539492615022e434435a70e35241a898f2 /framework/core.php | |
parent | 31807816360c93080a6a0da55b858d708cd85c8b (diff) |
moved shortcut methods from TComponent to TControl.
Diffstat (limited to 'framework/core.php')
-rw-r--r-- | framework/core.php | 16 |
1 files changed, 16 insertions, 0 deletions
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();
+ }
}
/**
|