コード例 #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
ファイル: Controller_Base.php プロジェクト: kostarev/test
 public function __construct($args)
 {
     parent::__construct();
     $this->args = $args;
     $this->registry['args'] = $args;
 }