MDL-32094 fix E_STRICT issues in lesson API

It is not possible to change method signatures in PHP...
This commit is contained in:
Petr Skoda 2012-03-18 18:36:04 +01:00
parent 072db71c90
commit 0ed6f71232
7 changed files with 17 additions and 15 deletions

View file

@ -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