(no description)
File Size: | 158 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
context_repository:: (8 methods):
context_from_record()
record_from_context()
save()
find()
find_by_contextid()
exists()
delete()
delete_by_deployment()
Class: context_repository - X-Ref
Class context_repository.context_from_record(\stdClass $record) X-Ref |
Generate a context instance from a record. return: context the context instance. param: \stdClass $record the record. |
record_from_context(context $context) X-Ref |
Generate a record from a context instance. return: \stdClass the resulting record. param: context $context the context instance. |
save(context $context) X-Ref |
Save the context to the store. return: context the saved context instance. param: context $context the context to save. |
find(int $id) X-Ref |
Find a context by id. return: context|null the context, if found, else null. param: int $id the id of the instance. |
find_by_contextid(string $contextid, int $deploymentid) X-Ref |
Find a context by it's platform-issued context id string. return: context|null the context instance, if found, else null. param: string $contextid the id of the context on the platform. param: int $deploymentid the id of the local deployment instance in which the contextid is unique. |
exists(int $id) X-Ref |
Check whether the context identified by 'id' exists in the store. return: bool true if found, false otherwise. param: int $id the id of the instance to check. |
delete(int $id) X-Ref |
Delete the context identified by 'id' from the store. param: int $id the id of context to delete. |
delete_by_deployment(int $deploymentid) X-Ref |
Delete all contexts under a given deployment. param: int $deploymentid the id of the local deployment instance. |