/** * Create a scheduler slot from the database. */ public static function load_by_id($id, scheduler_instance $scheduler) { $slot = new scheduler_slot($scheduler); $slot->load($id); return $slot; }