Why is assign:cron() a static function? (Moodle 2.5)

Why is assign:cron() a static function? (Moodle 2.5)

Russell England -
回帖数:0
Plugin developers的头像

Why is assign:cron() a static function? (Moodle 2.5)

/mod/assign/locallib.php 
public static function cron()

The rest of the Moodle code uses non static cron functions

public function cron()

It makes it very difficult to use $this for custom code.