mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-32094 fix E_STRICT issues in lesson API
It is not possible to change method signatures in PHP...
This commit is contained in:
parent
072db71c90
commit
0ed6f71232
7 changed files with 17 additions and 15 deletions
|
@ -830,7 +830,7 @@ abstract class lesson_add_page_form_base extends moodleform {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function construction_override() {
|
||||
public function construction_override($pageid, lesson $lesson) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -1620,14 +1620,16 @@ abstract class lesson_base {
|
|||
return !empty($this->properties->{$key});
|
||||
}
|
||||
|
||||
//NOTE: E_STRICT does not allow to change function signature!
|
||||
|
||||
/**
|
||||
* If overridden should create a new instance, save it in the DB and return it
|
||||
* If implemented should create a new instance, save it in the DB and return it
|
||||
*/
|
||||
public static function create() {}
|
||||
//public static function create() {}
|
||||
/**
|
||||
* If overridden should load an instance from the DB and return it
|
||||
* If implemented should load an instance from the DB and return it
|
||||
*/
|
||||
public static function load() {}
|
||||
//public static function load() {}
|
||||
/**
|
||||
* Fetches all of the properties of the object
|
||||
* @return stdClass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue