mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 03:46:42 +02:00
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle
This commit is contained in:
commit
3278ce7aba
1147 changed files with 2621 additions and 2617 deletions
|
@ -55,7 +55,7 @@ class backup_book_activity_task extends backup_activity_task {
|
|||
* @param string $content
|
||||
* @return string encoded content
|
||||
*/
|
||||
static public function encode_content_links($content) {
|
||||
public static function encode_content_links($content) {
|
||||
global $CFG;
|
||||
|
||||
$base = preg_quote($CFG->wwwroot, "/");
|
||||
|
|
|
@ -53,7 +53,7 @@ class restore_book_activity_task extends restore_activity_task {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function define_decode_contents() {
|
||||
public static function define_decode_contents() {
|
||||
$contents = array();
|
||||
|
||||
$contents[] = new restore_decode_content('book', array('intro'), 'book');
|
||||
|
@ -68,7 +68,7 @@ class restore_book_activity_task extends restore_activity_task {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function define_decode_rules() {
|
||||
public static function define_decode_rules() {
|
||||
$rules = array();
|
||||
|
||||
// List of books in course
|
||||
|
@ -97,7 +97,7 @@ class restore_book_activity_task extends restore_activity_task {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function define_restore_log_rules() {
|
||||
public static function define_restore_log_rules() {
|
||||
$rules = array();
|
||||
|
||||
$rules[] = new restore_log_rule('book', 'add', 'view.php?id={course_module}', '{book}');
|
||||
|
@ -131,7 +131,7 @@ class restore_book_activity_task extends restore_activity_task {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
static public function define_restore_log_rules_for_course() {
|
||||
public static function define_restore_log_rules_for_course() {
|
||||
$rules = array();
|
||||
|
||||
$rules[] = new restore_log_rule('book', 'view all', 'index.php?id={course}', null);
|
||||
|
|
|
@ -42,7 +42,7 @@ class cognitive_depth extends activity_base {
|
|||
*
|
||||
* @return \lang_string
|
||||
*/
|
||||
public static function get_name() : \lang_string {
|
||||
public static function get_name(): \lang_string {
|
||||
return new \lang_string('indicator:cognitivedepth', 'mod_book');
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class social_breadth extends activity_base {
|
|||
*
|
||||
* @return \lang_string
|
||||
*/
|
||||
public static function get_name() : \lang_string {
|
||||
public static function get_name(): \lang_string {
|
||||
return new \lang_string('indicator:socialbreadth', 'mod_book');
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_reason() : string {
|
||||
public static function get_reason(): string {
|
||||
return 'privacy:metadata';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_reason() : string {
|
||||
public static function get_reason(): string {
|
||||
return 'privacy:metadata';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_reason() : string {
|
||||
public static function get_reason(): string {
|
||||
return 'privacy:metadata';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_reason() : string {
|
||||
public static function get_reason(): string {
|
||||
return 'privacy:metadata';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue