PHP Class Search_model, 68kb

Inheritance: extends CI_Model
Mostra file Open project: 68kb/68kb Class Usage Examples

Public Methods

Method Description
__construct ( ) : void Constructor
clean_search_results ( ) : void Delete old search data.
filter_listings ( $search_options = [] ) : string Filter the listings by options
get_fields ( $cat_id ) : array Get any extra fields that can be searched
get_search ( $hash ) : array Get a stored search
remove_session ( ) Remove the search session data
store_search_results ( $keywords, $total ) Store Search Results

Private Methods

Method Description
_save_keywords ( $keywords ) ------------------------------------------------------------------------

Method Details

__construct() public method

Constructor
public __construct ( ) : void
return void

clean_search_results() public method

Delete old search data.
public clean_search_results ( ) : void
return void

filter_listings() public method

Filter the listings by options
public filter_listings ( $search_options = [] ) : string
return string

get_fields() public method

Get any extra fields that can be searched
public get_fields ( $cat_id ) : array
return array

remove_session() public method

Remove the search session data
public remove_session ( )

store_search_results() public method

Store Search Results
public store_search_results ( $keywords, $total )