Copyright © 2009 Marc Worrell Date: 2009-04-09
Behaviours: gen_model.
Authors: Marc Worrell (marc@worrell.nl).
all/1 | Return all configurations from the configuration table. |
delete/3 | Delete the specified module/key combination. |
get/2 | Get the list of configuration key for the module. |
get/3 | Get a configuration value for the given module/key combination. |
get_id/3 | Lookup the unique id in the config table from the module/key combination. |
get_value/3 | |
get_value/4 | |
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. |
set_prop/5 | Set a "complex" config value. |
set_value/4 | Set a "simple" config value. |
all(Context) -> any()
Return all configurations from the configuration table. Returns a nested proplist (module, key)
delete(Module::atom(), Key::atom(), Context::#context{}) -> ok
Delete the specified module/key combination
get(Module, Context) -> any()
Get the list of configuration key for the module.
get(Module::atom(), Key::atom(), Context::#context{}) -> Value | undefined
Get a configuration value for the given module/key combination.
get_id(Module, Key, Context) -> any()
Lookup the unique id in the config table from the module/key combination.
get_value(Module, Key, Context) -> any()
get_value(Module, Key, Default, Context) -> any()
m_find_value(Module::Key, M::Source, Context) -> term()
Fetch the value for the key from a model source
m_to_list(M::Source, Context) -> List
Transform a m_config 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
set_prop(Module::atom(), Key::atom(), Prop::atom(), PropValue::any(), Context::#context{}) -> ok
Set a "complex" config value.
set_value(Module::atom(), Key::atom(), Value::string(), Context::#context{}) -> ok
Set a "simple" config value.
Generated by EDoc, Feb 25 2011, 21:14:42.