示例#1
0
文件: Modules.php 项目: kostarev/test
 protected function __construct()
 {
     parent::__construct();
     $this->modules_dir = D . '/sys/modules';
     if (!is_dir($this->modules_dir)) {
         mkdir($this->modules_dir);
     }
     $this->back_modules_dir = D . '/sys/back_modules';
     if (!is_dir($this->back_modules_dir)) {
         mkdir($this->back_modules_dir);
     }
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_GET['ajax'])) {
         $this->auto_head = false;
         if ($_GET['ajax'] == 'script') {
             $this->ajax = true;
         }
     } elseif (isset($_POST['ajax'])) {
         $this->auto_head = false;
         if ($_POST['ajax'] == 'script') {
             $this->ajax = true;
         }
     }
     $this->set_theme('default');
     $this->menu = Menu::me();
 }
示例#3
0
 protected function __construct()
 {
     parent::__construct();
 }
示例#4
0
文件: Menu.php 项目: kostarev/test
 protected function __construct()
 {
     parent::__construct();
     $arr = $this->db->get("SELECT * FROM menu ORDER BY mother,pos;", 60);
     $this->full_array = $arr;
 }
示例#5
0
文件: Widgets.php 项目: kostarev/test
 protected function __construct()
 {
     parent::__construct();
     $this->dir = D . '/sys/widgets';
 }
示例#6
0
文件: User.php 项目: kostarev/test
 public function __construct($id = 0)
 {
     parent::__construct();
     $this->arr['id'] = $id;
     $this->arr['group'] = 'guest';
 }
示例#7
0
 public function __construct($args)
 {
     parent::__construct();
     $this->args = $args;
     $this->registry['args'] = $args;
 }