Copyright © 2009-2010 Marc Worrell Date: 2009-04-24
Authors: Marc Worrell (marc@worrell.nl).
delete/2 | Delete a resource. |
delete_nocheck/2 | Delete a resource, no check on rights etc is made. |
duplicate/3 | Duplicate a resource, creating a new resource with the given title. |
insert/2 | Insert a new resource. |
insert/3 | |
props_filter/3 | Remove properties the user is not allowed to change and convert some other to the correct data type. |
test/0 | |
update/3 | Update a resource. |
update/4 | Backward comp. |
delete(Id::Props, Context) -> ok | {error, Reason}
Delete a resource
delete_nocheck(Id, Context) -> ok
throws {error, Reason}
Delete a resource, no check on rights etc is made. This is called by m_category:delete/3
throws {error, Reason}
Duplicate a resource, creating a new resource with the given title.
insert(Props, Context) -> {ok, Id} | {error, Reason}
Insert a new resource. Crashes when insertion is not allowed.
insert(Props, EscapeTexts, Context) -> any()
props_filter(T::Props1, Acc, Context) -> Props2
Remove properties the user is not allowed to change and convert some other to the correct data type
test() -> any()
update(Id, Props, Context) -> {ok, Id}
throws {error, Reason}
Update a resource
update(Id, Props, Options, Context) -> any()
Backward comp.
Generated by EDoc, Feb 25 2011, 21:14:42.