MDL-32095 fix event handler classes to be E_STRICT compatible

This commit is contained in:
Petr Skoda
2012-03-26 16:04:47 +02:00
parent 748e96512b
commit e807c0be4f
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ defined('MOODLE_INTERNAL') || die();
* it may fail sometimes, so we always do a full sync in cron too.
*/
class enrol_category_handler {
public function role_assigned($ra) {
public static function role_assigned($ra) {
global $DB;
if (!enrol_is_enabled('category')) {
@@ -84,7 +84,7 @@ class enrol_category_handler {
return true;
}
public function role_unassigned($ra) {
public static function role_unassigned($ra) {
global $DB;
if (!enrol_is_enabled('category')) {
+3 -3
View File
@@ -40,7 +40,7 @@ class enrol_cohort_handler {
* @param stdClass $ca
* @return bool
*/
public function member_added($ca) {
public static function member_added($ca) {
global $DB;
if (!enrol_is_enabled('cohort')) {
@@ -79,7 +79,7 @@ class enrol_cohort_handler {
* @param stdClass $ca
* @return bool
*/
public function member_removed($ca) {
public static function member_removed($ca) {
global $DB;
// does anything want to sync with this cohort?
@@ -114,7 +114,7 @@ class enrol_cohort_handler {
* @param stdClass $cohort
* @return bool
*/
public function deleted($cohort) {
public static function deleted($cohort) {
global $DB;
// does anything want to sync with this cohort?