Skip to content
Browse files

introduce the query object

  • Loading branch information...
1 parent 24763ef commit 5115b43fbaa849115279578af87ed20bc4cd6aa8 @matzko committed Mar 16, 2011
Showing with 35 additions and 0 deletions.
  1. +35 −0 includes/wp-lite-autosuggest.php
View
35 includes/wp-lite-autosuggest.php
@@ -12,6 +12,41 @@ public function __construct()
load_wp_json_rpc_api();
}
+
+ /**
+ * Get search results from query.
+ *
+ * @param string $query The search query.
+ * @param array $extras Optional. The submitted data in an associated array.
+ * @return The results.
+ */
+ public function get_results_from_query( $query = '', $extras = array() )
+ {
+
+ }
+}
+
+class WP_Lite_Autosuggest_Model
+{
+ /**
+ * Create a query object from the submitted extra data.
+ *
+ * @param array $data The submitted data about this query.
+ * @return WP_Lite_Autosuggest_Query The query object reflecting this query.
+ */
+ public function build_query( $data = array() )
+ {
+ $query = new WP_Lite_Autosuggest_Query;
+ }
+}
+
+/**
+ * A query object
+ */
+class WP_Lite_Autosuggest_Query
+{
+
+
}
function load_wp_lite_autosuggest()

0 comments on commit 5115b43

Please sign in to comment.
Something went wrong with that request. Please try again.