Пример #1
0
 public function db($db = null)
 {
     if (!is_null($db)) {
         $this->_db = $db;
     } else {
         if (!isset($this->_db)) {
             $this->_db = c::db();
         }
     }
     return $this->_db;
 }