Copyright © 2009 Marc Worrell Date: 2009-04-15
Authors: Marc Worrell (marc@worrell.nl).
pager/3 | |
pager/4 | |
query_/2 | Given a query as proplist, return all results. |
search/2 | Search with the question and return the results. |
search/3 | Perform the named search and its arguments. |
search_pager/3 | Search items and handle the paging. |
search_pager/4 | Search items and handle the paging. |
search_result/3 | Handle a return value from a search function. |
pager(Search_result, Page, Context) -> any()
pager(Search_result, Page, PageLen, Context) -> any()
query_(Props, Context) -> [Id] | []
Given a query as proplist, return all results.
search(Search::{Name, SearchPropList}, Context::#context{}) -> #search_result{}
Search with the question and return the results
search(Search::{Name, SearchPropList}, OffsetLimit::{Offset, Limit}, Context::#context{}) -> #search_result{}
Perform the named search and its arguments
search_pager(Search::{Name, SearchPropList}, Page, Context::#context{}) -> #search_result{}
Search items and handle the paging. Uses the default page length.
search_pager(Search::{Name, SearchPropList}, Page, PageLen, Context::#context{}) -> #search_result{}
Search items and handle the paging
search_result(L::Result, Limit, Context) -> #search_result{}
Handle a return value from a search function. This can be an intermediate SQL statement that still needs to be augmented with extra ACL checks.
Generated by EDoc, Feb 25 2011, 21:14:41.