Copyright © 2009 Marc Worrell Date: 2009-04-15
Behaviours: gen_model.
Authors: Marc Worrell (marc@worrell.nl).
get_result/3 | |
m_find_value/3 | Fetch the value for the key from a model source. |
m_to_list/2 | Transform a model value to a list, used for template loops. |
m_value/2 | Transform a model value so that it can be formatted or piped through filters. |
search/2 | Perform a search, wrap the result in a m_search_result record. |
search_pager/2 | Perform a paged search, wrap the result in a m_search_result record. |
get_result(N, M_search_result, Context) -> any()
m_find_value(SearchProps::Key, M::Source, Context) -> term()
Fetch the value for the key from a model source
m_to_list(M::Source, Context) -> List
Transform a model value to a list, used for template loops
m_value(M::Source, Context) -> term()
Transform a model value so that it can be formatted or piped through filters
search(SearchName::Search, Context) -> #m_search_result{}
Perform a search, wrap the result in a m_search_result record
search_pager(SearchName::Search, Context) -> #m_search_result{}
Perform a paged search, wrap the result in a m_search_result record
Generated by EDoc, Feb 25 2011, 21:14:42.