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::undefined | id(), Context::#context{}) -> Props::list()
Select full row by persistent id.
get_props(Id::undefined | 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::undefined | id(), Props::list(), Context::#context{}) -> ok | {error, undefined}
Save new persistent session data.
Generated by EDoc, Apr 20 2018, 18:07:53.