Exemplo n.º 1
0
 public function export_modules()
 {
     $parent = $this->parent->get('parent');
     //record the "menu interface" of object client
     //$interfaces_object = $this->parent->get(\get_constant('\platform\config\interfac3::_namespace'));
     foreach (get_constant('\\platform\\config\\interfac3::_i_' . $this->name) as $module) {
         if (module_exist($module)) {
             $module_path = get_module_path($module);
             $parent->lib2namespace($module_path, $parent->name . '.' . get_constant('\\platform\\config\\interfac3::_module_namespace'), build_extension(get_constant('\\platform\\config\\interfac3::_valid_module_extension'), 1));
             //update the "menu interface" of object client
             //$interfaces_object->{$this->name}->{$module} = get_module_description($module);
         } else {
             //update the "menu interface" of object client
             //$interfaces_object->{$this->name}->{$module} = get_constant('\platform\config\interfac3::_no_module_description_msg');
         }
         //            if($this->slots > $this->slots_max){
         //                throw new \Exception;
         //            }else{
         //                $this->slots_number += $module->slots_number;
         //            }
     }
 }
Exemplo n.º 2
0
 public function load_template()
 {
     $this->set_template($_SESSION['device'], $_SESSION['mode']);
     $parent = $this->parent->get('parent');
     $parent->lib2namespace(\platform\config\template::_templates_folder . '/' . $this->address, $_SESSION['client_name'] . '.' . $parent->get('_env_namespace'), $_SESSION['mode'] . build_extension(get_constant('\\platform\\config\\template::_valid_template_extension'), 1));
 }