Пример #1
0
 protected function __construct()
 {
     load::service('DB');
     // calling a connector class into an instance
     if (is_null($this->DB)) {
         $this->DB = new DB();
     }
     // returning the connector class
     return $this;
 }
Пример #2
0
 protected function __construct()
 {
     load::service('DB');
     if (is_null($this->DB)) {
         $this->DB = new DB();
     }
 }