示例#1
0
 public function use_db($db)
 {
     if (empty($db)) {
         return false;
     }
     $md = md5($db);
     if (!in_array($md, $this->_container)) {
         $clone = new activeRecord();
         $clone->connect($db);
         $this->_container[$md] = $clone;
     }
     return $this->_container[$md];
 }