Start the application, analyze URL elements, call according controller/method or relocate to fallback location
public __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"; }
/** * The new Admin_controller */ public function __construct() { parent::__construct(); $this->load->model('model_admin'); // $this->hakAkses(1); // $this->check_login(); }
function __construct() { parent::__construct(); $this->load->model('stock'); $this->load->model('game'); $this->load->model('user'); }
public function __construct() { parent::__construct(); $this->load->helper('formfields'); $this->load->model('users'); $this->load->library('form_validation'); }
function __construct() { parent::__construct(); if (!isset($_SESSION['orderbyteam'])) { $this->session->set_userdata('orderbyteam', 'Code'); } }
/** * The new Admin_controller */ public function __construct() { parent::__construct(); $this->load->model('model_admin'); $this->isLogin(); $this->hakAkses(6); }
function __construct() { parent::__construct(); $this->layoutOptions = array('League', 'Conference', 'Division'); $this->orderOptions = array('City', 'Team', 'Net Points'); $this->dataSourceOptions = array('Database', 'Remote Server'); }
function __construct() { parent::__construct(); $this->load->model('register'); $this->load->helper(array('form', 'url')); $this->load->library('upload'); }
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"; }
public function __construct() { parent::__construct(); $this->load->helper('security'); $this->load->library('form_validation'); $this->load->database(); }
public function __construct() { parent::__construct(); $this->load->model('user_model'); $this->load->library('session'); $this->data['title'] = "Đăng nhập | eShop"; }
function __construct() { parent::__construct(); $this->restrict(array(ROLE_USER)); $this->load->model('game'); $this->load->library('session'); }
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'); }
function __construct() { parent::__construct(); $this->load->library('pagination'); $this->load->helper('url'); $this->load->library('session'); }
public function __construct() { parent::__construct(); $this->ag_auth->restrict('admin'); // restrict this controller to admins only $this->controller = strtolower(__CLASS__); }
public function __construct() { parent::__construct(); $this->load->model('edit_my_profile'); $this->load->model('Schedules_model'); $this->load->model('edit_my_profile'); }
/** * The new Admin_controller */ public function __construct() { parent::__construct(); $this->load->model('model_admin'); $this->load->model('model_sparepart'); $this->isLogin(); }
/** * Stock constructor. */ function __construct() { parent::__construct(); $this->load->model('movements'); $this->load->model('transactions'); $this->load->model('stocks'); }
public function __construct() { parent::__construct(); $this->auth = \Strong\Strong::getInstance(); if ($this->auth->loggedIn()) { $this->user = $this->auth->getUser(); } }
function __construct() { parent::__construct(); $this->load->database(); // load database $this->load->model('Players'); // load model }
function __construct() { parent::__construct(); $this->restrict(array(ROLE_USER)); $this->load->model('game'); //$this->getStatus(); //$this->checkRound(); }
public function __construct() { parent::__construct(); if (!$GLOBALS['CODEKIR']['LOGS']) { $this->loadModel('helper_model'); $GLOBALS['CODEKIR']['LOGS'] = new helper_model(); } }
public function __construct() { parent::__construct(); $this->load->helper('formfields'); $this->load->model('posts'); $this->load->model('users'); $this->load->helper('form'); }
/** * @param Registry $registry * @constructor */ public function __construct(Registry $registry) { parent::__construct($registry); $session = $this->configuration->get('session'); if (!isset($_SESSION[$session]['is_admin']) || $_SESSION[$session]['is_admin'] == 0) { $this->redirect('auth/login'); } }
function __construct() { parent::__construct(); $this->MODULE_CONF = $this->loadConfig('file'); $this->load->model('file_model'); $this->load->helper('file'); ini_set('memory_limit', '100M'); }
protected function __construct() { parent::__construct(); //This FAILS! $this->Cookie->destroyCookies(); //This WORKS! echo $this->TestVariable; }
function __construct() { parent::__construct(); $this->load->model('players'); $this->load->model('stocks'); $this->load->model('movements'); $this->load->model('transactions'); $this->load->library('bsx'); }
/** * Grabs both models to use one for the transactions and * since if a player has no transactions, use player model * to get player table values to fill in dropdown * Portfolio constructor. */ function __construct() { parent::__construct(); $this->load->model('transactions'); $this->load->model('players'); $this->load->model('stocks'); $this->load->model('stocks_held'); $this->load->library('form_validation'); }
function __construct() { parent::__construct(); $this->load->model('gamestate'); $this->load->model('rounds'); $this->load->model('players'); $this->load->model('agent'); $this->load->helper('url'); }
function __construct() { parent::__construct(); $this->load->model('postmodel'); //loads the contacts model $this->load->model('posttags'); //loads the contacts model $this->restrict(3); }