From 5632770c86d30361fe0c3eefc7d327786b478702 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 26 Nov 2013 11:34:52 +0100 Subject: Removed Wsat, will live in its own branch --- framework/Wsat/TWsatService.php | 62 ----------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 framework/Wsat/TWsatService.php (limited to 'framework/Wsat/TWsatService.php') diff --git a/framework/Wsat/TWsatService.php b/framework/Wsat/TWsatService.php deleted file mode 100644 index 3af34d49..00000000 --- a/framework/Wsat/TWsatService.php +++ /dev/null @@ -1,62 +0,0 @@ - - * - * ... - * - * - * - * ...and then you need to go to http://localhost/yoursite/index.php?wsat=TWsatLogin - * and generate code and configure your site. - */ -class TWsatService extends TPageService { - - private $_pass = ''; - -//----------------------------------------------------------------------------- - public function init($config) { - if ($this->getApplication()->getMode() === TApplicationMode::Performance || $this->getApplication()->getMode() === TApplicationMode::Normal) { - throw new TInvalidOperationException("You should not use Prado WSAT in any of the production modes."); - } - if (empty($this->_pass)) { - throw new TConfigurationException("You need to specify the Password attribute."); - } - $this->setDefaultPage("TWsatHome"); - $this->_startThemeManager(); - parent::init($config); - } - - public function getBasePath() { - $basePath = Prado::getPathOfNamespace("System.Wsat.pages"); - return realpath($basePath); - } - - private function _startThemeManager() { - $themeManager = new TThemeManager; - $themeManager->BasePath = "System.Wsat.themes"; - $url = Prado::getApplication()->getAssetManager()->publishFilePath(Prado::getPathOfNamespace('System.Wsat')); - $themeManager->BaseUrl = $url . DIRECTORY_SEPARATOR . "themes"; - - $themeManager->init(null); - $this->setThemeManager($themeManager); - } - - public function getPassword() { - return $this->_pass; - } - - public function setPassword($_pass) { - $this->_pass = $_pass; - } - -} - -?> -- cgit v1.2.3