Copyright © 2009 Marc Worrell Date: 2009-11-20
Behaviours: gen_model.
Authors: Marc Worrell (marc@worrell.nl).
id() = binary() | string()
| get/2 | Select full row by persistent id. |
| get_props/2 | Get only stored (persistent) props for session by id. |
| m_find_value/3 | Fetch the value for the key from a model source. |
| m_to_list/2 | Transform a m_config 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. |
| put/3 | Save new persistent session data. |
get(Id::id(), Context::#context{}) -> Props::list()
Select full row by persistent id.
get_props(Id::id(), Context::#context{}) -> Props::list() | undefined
Get only stored (persistent) props for session by id.
m_find_value(Key::id(), Source::#m{}, Context::#context{}) -> term()
Fetch the value for the key from a model source
m_to_list(Source::#m{}, Context::#context{}) -> list()
Transform a m_config value to a list, used for template loops
m_value(Source::#m{}, Context::#context{}) -> term()
Transform a model value so that it can be formatted or piped through filters
put(Id::id(), Props::list(), Context::#context{}) -> ok
Save new persistent session data.
Generated by EDoc, Dec 10 2012, 20:44:33.