__construct() защищенный Метод

Import the Config and Session instances
protected __construct ( )
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->import('Database');
     $this->import('Input');
     $this->database = $this->Database;
     $this->input = $this->Input;
 }
Пример #2
0
 /**
  * Make the constuctor public
  */
 public function __construct()
 {
     parent::__construct();
 }
Пример #3
0
 /**
  * Import the database object
  */
 protected function __construct()
 {
     parent::__construct();
     $this->import('Database');
 }