Skip to content

Commit

Permalink
introduce the query object
Browse files Browse the repository at this point in the history
  • Loading branch information
matzko committed Mar 16, 2011
1 parent 24763ef commit 5115b43
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions includes/wp-lite-autosuggest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,41 @@ public function __construct()


load_wp_json_rpc_api(); 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() function load_wp_lite_autosuggest()
Expand Down

0 comments on commit 5115b43

Please sign in to comment.