[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Activity completion condition.
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 284 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
condition:: (11 methods):
__construct()
save()
get_json()
is_available()
get_lang_string_keyword()
get_description()
get_debug_string()
update_after_restore()
completion_value_used()
wipe_static_cache()
update_dependency_id()
__construct($structure) X-Ref |
Constructor. param: \stdClass $structure Data structure from JSON decode |
save() X-Ref |
No description |
get_json($cmid, $expectedcompletion) X-Ref |
Returns a JSON object which corresponds to a condition of this type. Intended for unit testing, as normally the JSON values are constructed by JavaScript code. param: int $cmid Course-module id of other activity param: int $expectedcompletion Expected completion value (COMPLETION_xx) return: stdClass Object representing condition |
is_available($not, \core_availability\info $info, $grabthelot, $userid) X-Ref |
No description |
get_lang_string_keyword($completionstate) X-Ref |
Returns a more readable keyword corresponding to a completion state. Used to make lang strings easier to read. param: int $completionstate COMPLETION_xx constant return: string Readable keyword |
get_description($full, $not, \core_availability\info $info) X-Ref |
No description |
get_debug_string() X-Ref |
No description |
update_after_restore($restoreid, $courseid, \base_logger $logger, $name) X-Ref |
No description |
completion_value_used($course, $cmid) X-Ref |
Used in course/lib.php because we need to disable the completion JS if a completion value affects a conditional activity. param: \stdClass $course Moodle course object param: int $cmid Course-module id return: bool True if this is used in a condition, false otherwise |
wipe_static_cache() X-Ref |
Wipes the static cache of modules used in a condition (for unit testing). |
update_dependency_id($table, $oldid, $newid) X-Ref |
No description |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |