public function __call($func, $args = array()) { if (!$this->_pdo instanceof PDO) { return; } if (method_exists($this->_pdo, $func)) { return call_user_func_array(array(&$this->_pdo, $func), $args); } throw new HF_Model_Exception('PDO::' . $func . ' does not exist!'); }