diff options
author | xue <> | 2005-11-17 19:21:21 +0000 |
---|---|---|
committer | xue <> | 2005-11-17 19:21:21 +0000 |
commit | d833d2766f28f927cb4e1e8e660771361abdfdf9 (patch) | |
tree | f64d674c8e1ce25bdb712efb64fdf5557db9e550 /framework/TApplication.php | |
parent | aa2edcf52ee7438876d826283274bf7e271fad4a (diff) |
added application mode support.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 5b52fd22..9ac9a8a0 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -157,6 +157,10 @@ class TApplication extends TComponent * @var TAuthorizationRuleCollection collection of authorization rules
*/
private $_authRules=null;
+ /**
+ * @var string application mode
+ */
+ private $_mode='Debug';
/**
* Constructor.
@@ -242,6 +246,22 @@ class TApplication extends TComponent }
/**
+ * @return string application mode (Off|Debug|Normal|Peformance), defaults to Debug.
+ */
+ public function getMode()
+ {
+ return $this->_mode;
+ }
+
+ /**
+ * @param string application mode. Valid values include Off, Debug, Normal, or Peformance
+ */
+ public function setMode($value)
+ {
+ $this->_mode=TPropertyValue::ensureEnum($value,array('Off','Debug','Normal','Performance'));
+ }
+
+ /**
* @return string configuration file path
*/
public function getConfigurationFile()
|