Module m_search

Search model, used as an interface to the search functions of modules etc.

Copyright 2009 Marc Worrell Date: 2009-04-15

Behaviours: gen_model.

Authors: Marc Worrell (marc@worrell.nl).

Description

Search model, used as an interface to the search functions of modules etc.

Function Index

get_result/3
m_find_value/3Fetch the value for the key from a model source.
m_to_list/2Transform a model value to a list, used for template loops.
m_value/2Transform a model value so that it can be formatted or piped through filters.
search/2Perform a search, wrap the result in a m_search_result record.
search_pager/2Perform a paged search, wrap the result in a m_search_result record.

Function Details

get_result/3

get_result(N, M_search_result, Context) -> any()

m_find_value/3

m_find_value(SearchProps::Key, M::Source, Context) -> term()

Fetch the value for the key from a model source

m_to_list/2

m_to_list(M::Source, Context) -> List

Transform a model value to a list, used for template loops

m_value/2

m_value(M::Source, Context) -> term()

Transform a model value so that it can be formatted or piped through filters

search/2

search(SearchName::Search, Context) -> #m_search_result{}

Perform a search, wrap the result in a m_search_result record

search_pager/2

search_pager(SearchName::Search, Context) -> #m_search_result{}

Perform a paged search, wrap the result in a m_search_result record


Generated by EDoc, Nov 21 2014, 13:42:47.