当前位置: 首页>>代码示例>>PHP>>正文


PHP App::__construct方法代码示例

本文整理汇总了PHP中App::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP App::__construct方法的具体用法?PHP App::__construct怎么用?PHP App::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在App的用法示例。


在下文中一共展示了App::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->sapi['cli']['import'] = array('file' => 'import.php', 'class' => 'WeaverImport', 'description' => 'Import story data from a file');
     $this->sapi['cli']['sync'] = array('file' => 'sync.php', 'class' => 'WeaverSync', 'description' => 'Synchronise dirty objects');
     $this->sapi['cli']['delete'] = array('file' => 'delete.php', 'class' => 'WeaverDelete', 'description' => 'Delete an object');
 }
开发者ID:nexgenta,项目名称:weaver,代码行数:7,代码来源:cli.php

示例2: __construct

 public function __construct()
 {
     $this->mod = 'test';
     $this->debug = true;
     $this->logger = 'test';
     parent::__construct();
 }
开发者ID:hihus,项目名称:newpi,代码行数:7,代码来源:test.php

示例3: __construct

 public function __construct($argv)
 {
     $this->mode = 'com';
     $this->app_env = Pi::get('app_env', '');
     $this->com_env = Pi::get('com_env', '');
     parent::__construct();
 }
开发者ID:xtzlyp,项目名称:newpi,代码行数:7,代码来源:Com.php

示例4: __construct

 public function __construct($config, $router)
 {
     if (!IS_WORKSPACE && !isset($_SERVER["HTTP_X_REQUESTED_WITH"])) {
         exit;
     }
     parent::__construct($config, $router);
 }
开发者ID:stefanak-michal,项目名称:DragonMVC,代码行数:7,代码来源:Api.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->sapi['cli']['import'] = array('file' => 'import.php', 'class' => 'MediaImport', 'description' => 'Import media data from a file');
     $this->sapi['cli']['convert-tva'] = array('file' => 'convert-tva.php', 'class' => 'MediaConvertTVA', 'description' => 'Convert TV-Anytime classification scheme XML');
     $this->sapi['cli']['sync'] = array('file' => 'sync.php', 'class' => 'MediaSync', 'description' => 'Synchronise dirty objects');
     $this->sapi['cli']['delete'] = array('file' => 'delete.php', 'class' => 'MediaDelete', 'description' => 'Delete an object');
 }
开发者ID:nexgenta,项目名称:media,代码行数:8,代码来源:cli.php

示例6:

 /**
  * Constructor
  * @param array|object $initObj
  */
 function __construct($initObj = null)
 {
     // default option to false
     $this->setOptin();
     parent::__construct($initObj);
     // define errors
     $this->getErrorObj()->setDescription("ENTRY_FIRST_EMPTY", "First name is empty.")->setDescription("ENTRY_LAST_EMPTY", "Last name is empty.")->setDescription("ENTRY_EMAIL_INVALID", "Email is not valid.")->setDescription("ENTRY_DB_ERROR", "Error inserting into entry table.");
 }
开发者ID:xtianjs,项目名称:code_examples,代码行数:12,代码来源:Entry.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('profile_model', 'profile');
     $this->load->model('heir_model', 'heir');
     $this->load->model('bank_model', 'bank');
     $this->load->model('province_model', 'province');
     $this->load->model('city_model', 'city');
 }
开发者ID:taryono,项目名称:trade,代码行数:9,代码来源:Profile.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('invoice_model', 'invoice');
     $this->load->model('payment_model', 'payment');
     $this->load->model('income_model', 'income');
     $this->load->model('order_model', 'order');
     $this->load->helper('common');
 }
开发者ID:taryono,项目名称:trade,代码行数:9,代码来源:Payment.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('permission_model', 'permission');
     $this->load->helper('common');
     if (!$this->acl->hasPermission($this->url) && $this->roleName != "super") {
         show_404();
     }
 }
开发者ID:taryono,项目名称:trade,代码行数:9,代码来源:Permission.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $id = $this->id;
     $status = $this->status;
     $cep = $this->cep;
     $endereco = $this->endereco;
     $bairro = $this->bairro;
     $cidade = $this->cidade;
     $estado = $this->estado;
 }
开发者ID:billythekiid,项目名称:zup,代码行数:11,代码来源:endereco.php

示例11: __construct

 /**
  * Construct a new App_test object
  *
  * @param String $uri an optional relative URI (e.g. "/folder/file")
  */
 public function __construct($uri = NULL)
 {
     $this->is_testing = TRUE;
     parent::__construct($uri);
     if (Config::get('TESTING_ENABLED') !== TRUE) {
         parent::redirect('', array('exit' => TRUE));
     }
     $this->reset_folder();
     $this->test_run = NULL;
     // Translations need validating
     Translate::validate();
 }
开发者ID:hutchike,项目名称:YAWF,代码行数:17,代码来源:App_test.php

示例12: __construct

 public function __construct()
 {
     if (!defined("APP_CTR_ROOT")) {
         die('please define APP_CTR_ROOT const');
     }
     if (!defined("APP_NAME")) {
         die('please define APP_NAME const');
     }
     $this->mode = 'web';
     $this->env = Pi::get('env', 'online');
     parent::__construct();
 }
开发者ID:gelcaas,项目名称:newpi,代码行数:12,代码来源:Web.php

示例13: __construct

 public function __construct()
 {
     global $ADMIN_ROUTES;
     parent::__construct();
     $this->sapi['http'] = array_merge($this->sapi['http'], $ADMIN_ROUTES);
     if (!isset($this->routes['__NONE__'])) {
         $this->routes['__NONE__'] = array('class' => 'AdminRedirect');
     }
     if (!isset($this->routes['__DEFAULT__'])) {
         $this->routes['__DEFAULT__'] = array('class' => 'AdminRedirect');
     }
 }
开发者ID:nexgenta,项目名称:admin,代码行数:12,代码来源:router.php

示例14: __construct

 public function __construct($file, $php_self, $request_uri)
 {
     global $config;
     ##
     parent::__construct($file, $php_self, $request_uri);
     ## override default user with sessionUser
     if ($this->hasSessionUser()) {
         $this->user = $this->getSessionUser();
     }
     ##
     $this->theme = $config['default']['theme'];
     ##
     define('__LOGO__', __URL__ . (isset($config['logo']) ? $config['logo'] : '/public/images/logo.png'));
     define('__THEME__', __BASE__ . '/theme/' . $this->theme);
 }
开发者ID:ctlr,项目名称:Simple-File-Manager,代码行数:15,代码来源:WebApp.php

示例15: __construct

 public function __construct($argv = array())
 {
     if (!defined("APP_NAME")) {
         die("app.err please define APP_NAME const \n");
     }
     $this->mode = 'api';
     $this->env = Pi::get('env', 'online');
     $data_type = Conf::get("global.data_type", 'json');
     if (isset($this->data_types[$data_type])) {
         $this->data_type = $data_type;
     }
     parent::__construct();
     //debug
     if ($this->debug && !empty($argv)) {
         $_REQUEST['mod'] = $argv[1];
         $_REQUEST['func'] = $argv[2];
     }
 }
开发者ID:gelcaas,项目名称:newpi,代码行数:18,代码来源:Api.php


注:本文中的App::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。