__construct() public method

Start the application, analyze URL elements, call according controller/method or relocate to fallback location
public __construct ( )
Example #1
0
 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";
 }
Example #2
0
 /**
  * The new Admin_controller
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('model_admin');
     //        $this->hakAkses(1);
     //        $this->check_login();
 }
Example #3
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('stock');
     $this->load->model('game');
     $this->load->model('user');
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('formfields');
     $this->load->model('users');
     $this->load->library('form_validation');
 }
Example #5
0
 function __construct()
 {
     parent::__construct();
     if (!isset($_SESSION['orderbyteam'])) {
         $this->session->set_userdata('orderbyteam', 'Code');
     }
 }
Example #6
0
 /**
  * The new Admin_controller
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('model_admin');
     $this->isLogin();
     $this->hakAkses(6);
 }
Example #7
0
 function __construct()
 {
     parent::__construct();
     $this->layoutOptions = array('League', 'Conference', 'Division');
     $this->orderOptions = array('City', 'Team', 'Net Points');
     $this->dataSourceOptions = array('Database', 'Remote Server');
 }
Example #8
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('register');
     $this->load->helper(array('form', 'url'));
     $this->load->library('upload');
 }
Example #9
0
 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();
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_model');
     $this->load->library('session');
     $this->data['title'] = "Đăng nhập | eShop";
 }
Example #12
0
 function __construct()
 {
     parent::__construct();
     $this->restrict(array(ROLE_USER));
     $this->load->model('game');
     $this->load->library('session');
 }
Example #13
0
 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');
 }
Example #14
0
 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__);
 }
Example #16
0
 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();
 }
Example #18
0
 /**
  * Stock constructor.
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('movements');
     $this->load->model('transactions');
     $this->load->model('stocks');
 }
Example #19
0
 public function __construct()
 {
     parent::__construct();
     $this->auth = \Strong\Strong::getInstance();
     if ($this->auth->loggedIn()) {
         $this->user = $this->auth->getUser();
     }
 }
Example #20
0
 function __construct()
 {
     parent::__construct();
     $this->load->database();
     // load database
     $this->load->model('Players');
     // load model
 }
Example #21
0
 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();
     }
 }
Example #23
0
 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');
     }
 }
Example #25
0
 function __construct()
 {
     parent::__construct();
     $this->MODULE_CONF = $this->loadConfig('file');
     $this->load->model('file_model');
     $this->load->helper('file');
     ini_set('memory_limit', '100M');
 }
Example #26
0
 protected function __construct()
 {
     parent::__construct();
     //This FAILS!
     $this->Cookie->destroyCookies();
     //This WORKS!
     echo $this->TestVariable;
 }
Example #27
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('players');
     $this->load->model('stocks');
     $this->load->model('movements');
     $this->load->model('transactions');
     $this->load->library('bsx');
 }
Example #28
0
 /**
  * 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');
 }
Example #29
0
 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);
 }