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


PHP Application::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($argv)
 {
     parent::__construct();
     // get the parsers;
     $parsers = $this->getParsers();
     parent::addParameter('parser', true, implode("|", $parsers), null, 'bio2rdf parser to run');
     parent::addParameter('statistics', false, "true|false", "false", 'generate statistics');
     if (parent::setParameters($argv, true) === FALSE) {
         if (parent::getParameterValue('parser') == '') {
             parent::printParameters();
             exit;
         }
     }
     $statistics = parent::getParameterValue("statistics");
     // now get the file and run it
     $parser_name = parent::getParameterValue('parser');
     $file = $parser_name . '/' . $parser_name . '.php';
     if (!file_exists($file)) {
         trigger_error("{$file} does not exist", E_USER_ERROR);
         exit(-1);
     }
     require $file;
     $parser_class = str_replace(".", "", $parser_name) . "Parser";
     $parser = new $parser_class($argv);
     set_time_limit(0);
     $start = microtime(true);
     $parser->Run();
     $end = microtime(true);
     $time_taken = $end - $start;
     print "Start: " . date("l jS F \\@ g:i:s a", $start) . "\n";
     print "End:   " . date("l jS F \\@ g:i:s a", $end) . "\n";
     print "Time:  " . sprintf("%.2f", $time_taken) . " seconds\n";
 }
开发者ID:zorino,项目名称:bio2rdf-scripts,代码行数:33,代码来源:runparser.php

示例2: __construct

 /**
  * The new Admin_controller
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('model_admin');
     //        $this->hakAkses(1);
     //        $this->check_login();
 }
开发者ID:ariswidiantoro,项目名称:klikdms,代码行数:10,代码来源:service.php

示例3:

 function __construct()
 {
     parent::__construct();
     $this->load->model('stock');
     $this->load->model('game');
     $this->load->model('user');
 }
开发者ID:Comp4711-Group7,项目名称:Assignment-1,代码行数:7,代码来源:Welcome.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('formfields');
     $this->load->model('users');
     $this->load->library('form_validation');
 }
开发者ID:Benier,项目名称:ProjectWebapp,代码行数:7,代码来源:SignUp.php

示例5:

 function __construct()
 {
     parent::__construct();
     if (!isset($_SESSION['orderbyteam'])) {
         $this->session->set_userdata('orderbyteam', 'Code');
     }
 }
开发者ID:BCIT-Projects,项目名称:Comp4711WebDev,代码行数:7,代码来源:League.php

示例6: __construct

 /**
  * The new Admin_controller
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('model_admin');
     $this->isLogin();
     $this->hakAkses(6);
 }
开发者ID:ariswidiantoro,项目名称:klikdms,代码行数:10,代码来源:admin.php

示例7: array

 function __construct()
 {
     parent::__construct();
     $this->layoutOptions = array('League', 'Conference', 'Division');
     $this->orderOptions = array('City', 'Team', 'Net Points');
     $this->dataSourceOptions = array('Database', 'Remote Server');
 }
开发者ID:BroncosPredictor,项目名称:broncos,代码行数:7,代码来源:Standing.php

示例8:

 function __construct()
 {
     parent::__construct();
     $this->load->model('register');
     $this->load->helper(array('form', 'url'));
     $this->load->library('upload');
 }
开发者ID:Domoarigato-G4,项目名称:CyberBot,代码行数:7,代码来源:Registration.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_model');
     $this->load->library('session');
     $this->data['title'] = "Thông tin tài khoản | eShop";
 }
开发者ID:duongtruong,项目名称:zanado,代码行数:7,代码来源:user.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('security');
     $this->load->library('form_validation');
     $this->load->database();
 }
开发者ID:COMP4711-Archdevs,项目名称:StockTickerAgent,代码行数:7,代码来源:Login.php

示例11:

 function __construct()
 {
     parent::__construct();
     $this->restrict(array(ROLE_USER));
     $this->load->model('game');
     $this->load->library('session');
 }
开发者ID:Comp4711-Group7,项目名称:Assignment-1,代码行数:7,代码来源:Games.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->thisuser = new DataBase();
     $this->blackjack = new BlackJackModel();
     $this->validateAction = array('init', 'play', 'loadAmount', 'deal1card', 'dealcards', 'stand', 'todayamount', 'buttongame', 'newhands');
 }
开发者ID:eduarguzher,项目名称:BlackJackApp,代码行数:7,代码来源:BlackJack.php

示例13:

 function __construct()
 {
     parent::__construct();
     $this->load->library('pagination');
     $this->load->helper('url');
     $this->load->library('session');
 }
开发者ID:GeraldBecker,项目名称:MiamiDolphins,代码行数:7,代码来源:Players.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->ag_auth->restrict('admin');
     // restrict this controller to admins only
     $this->controller = strtolower(__CLASS__);
 }
开发者ID:cristminix,项目名称:7e03be2c8848cc5549cc93a3a90edb44,代码行数:7,代码来源:reseller.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('edit_my_profile');
     $this->load->model('Schedules_model');
     $this->load->model('edit_my_profile');
 }
开发者ID:jeremiahC,项目名称:ci2,代码行数:7,代码来源:profile.php


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