Copyright © 2012 Marc Worrell
Behaviours: zotonic_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. |
get_uri/2 | Get the possible 'rsc_gone' resource for the uri. |
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). |
install/1 | Install or upgrade the rsc_gone table. |
is_gone/2 | Check if the resource used to exist. |
is_gone_uri/2 | Check if the resource uri used to exist. |
m_get/3 | Fetch the value for the key from a model source. |
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.
get_uri(Uri::binary() | string(), Context::z:context()) -> proplists:proplist() | undefined
Get the possible 'rsc_gone' resource for the uri.
gone(Id::m_rsc:resource_id(), Context::z:context()) -> {ok, integer()} | {error, term()}
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.
install(Context::z:context()) -> ok
Install or upgrade the rsc_gone table.
is_gone(Id::m_rsc:resource_id() | undefined, Context::z:context()) -> boolean()
Check if the resource used to exist.
is_gone_uri(Uri::string() | binary() | undefined, Context::z:context()) -> boolean()
Check if the resource uri used to exist.
m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()
Fetch the value for the key from a model source
Generated by EDoc