Changeset 20303
- Timestamp:
- 2011/02/21 18:58:45 (15 years ago)
- Location:
- branches/version-2_5-dev/data
- Files:
-
- 6 added
- 2 edited
-
class/SC_AdminView.php (added)
-
class/SC_InstallView.php (added)
-
class/SC_MobileView.php (added)
-
class/SC_SiteView.php (added)
-
class/SC_SmartphoneView.php (added)
-
class/SC_UserView.php (added)
-
class/SC_View.php (modified) (1 diff)
-
require_classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_View.php
r20069 r20303 195 195 } 196 196 197 class SC_AdminView extends SC_View{198 function SC_AdminView() {199 parent::SC_View(false);200 $this->_smarty->template_dir = TEMPLATE_ADMIN_REALDIR;201 $this->_smarty->compile_dir = COMPILE_ADMIN_REALDIR;202 $this->assign('TPL_URLPATH_DEFAULT', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . DEFAULT_TEMPLATE_NAME . '/');203 $this->assign('TPL_URLPATH', ROOT_URLPATH . USER_DIR . USER_PACKAGE_DIR . "admin/");204 $this->initpath();205 }206 }207 208 class SC_SiteView extends SC_View{209 function SC_SiteView($setPrevURL = true) {210 parent::SC_View();211 212 $this->_smarty->template_dir = TEMPLATE_REALDIR;213 $this->_smarty->compile_dir = COMPILE_REALDIR;214 215 $this->assignTemplatePath(DEVICE_TYPE_PC);216 $this->initpath();217 218 if ($setPrevURL) {219 $objCartSess = new SC_CartSession();220 $objCartSess->setPrevURL($_SERVER['REQUEST_URI']);221 }222 }223 }224 225 class SC_UserView extends SC_SiteView{226 function SC_UserView($template_dir, $compile_dir = COMPILE_REALDIR) {227 parent::SC_SiteView();228 $this->_smarty->template_dir = $template_dir;229 $this->_smarty->compile_dir = $compile_dir;230 }231 }232 233 class SC_InstallView extends SC_View{234 function SC_InstallView($template_dir, $compile_dir = COMPILE_REALDIR) {235 parent::SC_View(false);236 $this->_smarty->template_dir = $template_dir;237 $this->_smarty->compile_dir = $compile_dir;238 }239 }240 241 class SC_MobileView extends SC_SiteView {242 function SC_MobileView($setPrevURL = true) {243 parent::SC_SiteView($setPrevURL);244 $this->_smarty->template_dir = MOBILE_TEMPLATE_REALDIR;245 $this->_smarty->compile_dir = MOBILE_COMPILE_REALDIR;246 $this->assignTemplatePath(DEVICE_TYPE_MOBILE);247 }248 }249 250 class SC_SmartphoneView extends SC_SiteView {251 function SC_SmartphoneView($setPrevURL = true) {252 parent::SC_SiteView($setPrevURL);253 $this->_smarty->template_dir = SMARTPHONE_TEMPLATE_REALDIR;254 $this->_smarty->compile_dir = SMARTPHONE_COMPILE_REALDIR;255 $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE);256 }257 }258 197 ?> -
branches/version-2_5-dev/data/require_classes.php
r20116 r20303 28 28 require_once(CLASS_EX_REALDIR . "db_extends/SC_DB_DBFactory_Ex.php"); 29 29 require_once(CLASS_REALDIR . "SC_View.php"); 30 require_once(CLASS_REALDIR . "SC_AdminView.php"); 31 require_once(CLASS_REALDIR . "SC_SiteView.php"); 32 require_once(CLASS_REALDIR . "SC_UserView.php"); 33 require_once(CLASS_REALDIR . "SC_InstallView.php"); 34 require_once(CLASS_REALDIR . "SC_MobileView.php"); 35 require_once(CLASS_REALDIR . "SC_SmartphoneView.php"); 30 36 require_once(CLASS_REALDIR . "SC_Session.php"); 31 37 require_once(CLASS_REALDIR . "SC_Query.php");
Note: See TracChangeset
for help on using the changeset viewer.
