Copyright © 2012 Marc Worrell
Behaviours: gen_model.
Authors: Marc Worrell (marc@worrell.nl).
get/2 | Get the possible 'rsc_gone' resource for the id. |
get_new_location/2 | Get the redirect location for the id, uses the current dispatch rule and otherwise the 'id' dispatch rule. |
gone/2 | Copy a resource to the 'gone' table, use the current user as the modifier (deleter). |
gone/3 | Copy a resource to the 'gone' table, use the current user as the modifier (deleter). |
is_gone/2 | Check if the resource used to exist. |
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. |
get(Id, Context) -> any()
Get the possible 'rsc_gone' resource for the id.
get_new_location(Id, Context) -> any()
Get the redirect location for the id, uses the current dispatch rule and otherwise the 'id' dispatch rule.
gone(Id::integer(), Context::#context{}) -> {ok, integer()}
Copy a resource to the 'gone' table, use the current user as the modifier (deleter).
gone(Id, NewId, Context) -> any()
Copy a resource to the 'gone' table, use the current user as the modifier (deleter). Also sets the 'new id', which is the id that replaces the deleted id.
is_gone(Id::integer() | undefined, Context::#context{}) -> boolean()
Check if the resource used to exist.
m_find_value(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
Generated by EDoc, Apr 20 2018, 18:07:53.