本文整理汇总了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";
}
示例2: __construct
/**
* The new Admin_controller
*/
public function __construct()
{
parent::__construct();
$this->load->model('model_admin');
// $this->hakAkses(1);
// $this->check_login();
}
示例3:
function __construct()
{
parent::__construct();
$this->load->model('stock');
$this->load->model('game');
$this->load->model('user');
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->load->helper('formfields');
$this->load->model('users');
$this->load->library('form_validation');
}
示例5:
function __construct()
{
parent::__construct();
if (!isset($_SESSION['orderbyteam'])) {
$this->session->set_userdata('orderbyteam', 'Code');
}
}
示例6: __construct
/**
* The new Admin_controller
*/
public function __construct()
{
parent::__construct();
$this->load->model('model_admin');
$this->isLogin();
$this->hakAkses(6);
}
示例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');
}
示例8:
function __construct()
{
parent::__construct();
$this->load->model('register');
$this->load->helper(array('form', 'url'));
$this->load->library('upload');
}
示例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";
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->load->helper('security');
$this->load->library('form_validation');
$this->load->database();
}
示例11:
function __construct()
{
parent::__construct();
$this->restrict(array(ROLE_USER));
$this->load->model('game');
$this->load->library('session');
}
示例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');
}
示例13:
function __construct()
{
parent::__construct();
$this->load->library('pagination');
$this->load->helper('url');
$this->load->library('session');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->ag_auth->restrict('admin');
// restrict this controller to admins only
$this->controller = strtolower(__CLASS__);
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->load->model('edit_my_profile');
$this->load->model('Schedules_model');
$this->load->model('edit_my_profile');
}