/** * Get singleton instance of the class or create new one, if no exists. * * @param PDOStatement $o_set_result the requested result-set of the last SQL-Statement * @return Database_Result the instance of the class */ public static function getInstance($o_set_result) { if (null === self::$instance) { self::$instance = new self(); } //set the result-set object and fetch all rows self::$instance->set_result_set($o_set_result); self::$instance->set_result_rows($o_set_result); //return the instance return self::$instance; }