예제 #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
파일: Template.php 프로젝트: kostarev/test
 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
파일: SiteWrite.php 프로젝트: kostarev/test
 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;
 }