swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: DateRangeSearchContext

Source Location: /code/search/contexts/DateRangeSearchContext.php

Class Overview

SearchContext
   |
   --DateRangeSearchContext

Search context for date ranges, used in the CMS for searching Orders.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 11]
Search context for date ranges, used in the CMS for searching Orders.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Methods


method getQuery [line 51]

SQLQuery getQuery( $searchParams, [ $sort = false], [ $limit = false], [ $existingQuery = null])

Alter the existing SQL query object by adding some filters for the search so that the query finds Orders between two dates min and max.



Tags:

return:  Query with filters applied for search
access:  public


Parameters:

   $searchParams  
   $sort  
   $limit  
   $existingQuery  

[ Top ]

method getSearchFields [line 23]

FieldSet getSearchFields( )

Replace the default form fields for the 'Created' search field with a single text field which we can use to apply jquery date range widget to.



Tags:

access:  public


[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:25 +1300 by phpDocumentor 1.4.4