__construct() public method

Runs the route mapping function.
public __construct ( array $routing = NULL ) : void
$routing array
return void
コード例 #1
0
 public function __construct()
 {
     if (isset($_SERVER['HTTP_APIVER'])) {
         $this->version = $_SERVER['HTTP_APIVER'];
     }
     parent::__construct();
 }
コード例 #2
0
ファイル: Router.php プロジェクト: arp19690/newtravel
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 function __construct()
 {
     parent::__construct();
     // Process 'modules_locations' from config
     $locations = $this->config->item('modules_locations');
     if (!$locations) {
         $locations = array(APPPATH . 'modules/');
     } else {
         if (!is_array($locations)) {
             $locations = array($locations);
         }
     }
     // Make sure all paths are the same format
     foreach ($locations as &$location) {
         $location = realpath($location);
         $location = str_replace('\\', '/', $location);
         $location = rtrim($location, '/') . '/';
     }
     $this->config->set_item('modules_locations', $locations);
 }
コード例 #3
0
ファイル: MY_Router.php プロジェクト: bardascat/blogify
 function MY_Router()
 {
     parent::__construct();
 }
コード例 #4
0
ファイル: MY_Router.php プロジェクト: haixingdev/HMVC
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
 }
コード例 #6
0
ファイル: Router.php プロジェクト: bootigniter/project
 /**
  * Constructor
  *
  * Runs the route mapping function.
  */
 public function __construct()
 {
     $this->config =& load_class('Config', 'core');
     $this->module = new Module($this->config);
     parent::__construct();
 }
コード例 #7
0
 /**
  * Class constructor
  *
  * Runs the route mapping function.
  *
  * @return	void
  */
 public function __construct($routing = NULL)
 {
     $this->index_routing = $routing;
     parent::__construct($routing);
 }
コード例 #8
0
ファイル: BF_Router.php プロジェクト: magicjoey/Bonfire
 /**
  * Class constructor runs the route mapping function in CI3.
  *
  * @param array $routing Optional configuration values.
  *
  * @return void
  */
 public function __construct($routing = null)
 {
     parent::__construct($routing);
     log_message('info', 'BF_Router class initialized');
 }
コード例 #9
0
ファイル: Plain_Router.php プロジェクト: iweave/unmark
 function __construct()
 {
     parent::__construct();
     log_message('debug', 'Plain_Router Class Initialized');
 }
コード例 #10
0
ファイル: MY_Router.php プロジェクト: IndiraWEB/diplom
 public function __construct($routing = NULL)
 {
     $this->input =& load_class('Input', 'core');
     parent::__construct($routing);
 }