class Lib_Core_Assembler { public function __construct() { include('classes/Lib/dll.php'); $this->loadLibrayFiles($libraries); $this->loadModelFiles($domapping, $globalmapping); } private function loadLibrayFiles($library) { foreach($library as $key=>$item) include(INSPATH.$item); } private function loadModelFiles($domapping,$globalmapping) { if(isset($_GET['action']) && isset($_GET['action']{1})) $do = trim($_GET['do']).':'.trim($_GET['action']); else $do = trim($_GET['do']); if(array_key_exists($do,$domapping)) { include(INSPATH.'classes/Model/'.$domapping[$do]['model'].'.php'); $class = "Model_".$domapping[$do]['model']; $function = $domapping[$do]['function']; $obj = new $class; $obj->$function(); } else { include_once(INSPATH.'classes/Model/'.$globalmapping['invalidrequest']['model'].'.php'); $class = "Model_".$globalmapping['invalidrequest']['model']; $function = $globalmapping['invalidrequest']['function']; $obj = new $class; $obj->$function(); } } private function loadSettings() { $set = new Lib_CacheSettings(); $set->cacheSiteSettings(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)