PHP Class Search_model, 68kb

Inheritance: extends CI_Model
Afficher le fichier Open project: 68kb/68kb Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
_save_keywords ( $keywords ) ------------------------------------------------------------------------

Method Details

__construct() public méthode

Constructor
public __construct ( ) : void
Résultat void

clean_search_results() public méthode

Delete old search data.
public clean_search_results ( ) : void
Résultat void

filter_listings() public méthode

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

get_fields() public méthode

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

remove_session() public méthode

Remove the search session data
public remove_session ( )

store_search_results() public méthode

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