コード例 #1
0
 function __construct()
 {
     // GET THE CORRECT CLASSNAME, WITHOUT NAMESPACE
     $this->modelName = getClassFromNamespace(get_class($this)) . "s";
     // MAKE A NEW CONNECTION
     $this->connection = DB::_open($this->modelName);
 }
コード例 #2
0
 private function dbLinkOpen()
 {
     $this->dbLink = DB::_open($this->modelName);
 }