diff options
Diffstat (limited to 'framework/TApplicationMode.php')
-rw-r--r-- | framework/TApplicationMode.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/framework/TApplicationMode.php b/framework/TApplicationMode.php new file mode 100644 index 00000000..9ce1433c --- /dev/null +++ b/framework/TApplicationMode.php @@ -0,0 +1,31 @@ +<?php +/** + * TApplication class file + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2014 PradoSoft + * @license http://www.pradosoft.com/license/ + * @package System + */ + +/** + * TApplicationMode class. + * TApplicationMode defines the possible mode that an application can be set at by + * setting {@link TApplication::setMode Mode}. + * In particular, the following modes are defined + * - Off: the application is not running. Any request to the application will obtain an error. + * - Debug: the application is running in debug mode. + * - Normal: the application is running in normal production mode. + * - Performance: the application is running in performance mode. + * @author Qiang Xue <qiang.xue@gmail.com> + * @package System + * @since 3.0.4 + */ +class TApplicationMode extends TEnumerable +{ + const Off='Off'; + const Debug='Debug'; + const Normal='Normal'; + const Performance='Performance'; +} |