debug_mode=$debug_mode; $this->query=$query; $this->registry=$registry; } public function getData($param=array()) { try{ } catch (PDOException $e) { if($this->debug_mode) { return $e->getMessage(); }else { return FALSE; } } $this->param=$param; $obj = new processdata(); return $obj; } }