public static function get_scheduled_task($classname) {
        global $DB;

        $classname = self::get_canonical_class_name($classname);
        // We are just reading - so no locks required.
        $record = $DB->get_record('task_scheduled', array('classname'=>$classname), '*', IGNORE_MISSING);
        if (!$record) {
            return false;
        }
        return self::scheduled_task_from_record($record);
    }
public static function get_scheduled_task($classname) {
        global $DB;

        $classname = self::get_canonical_class_name($classname);
        // We are just reading - so no locks required.
        $record = $DB->get_record('task_scheduled', array('classname'=>$classname), '*', IGNORE_MISSING);
        if (!$record) {
            return false;
        }
        return self::scheduled_task_from_record($record);
    }
public static function get_scheduled_task ( $ classname ) { global $ DB ; $ classname = self :: get_canonical_class_name ( $ classname ) ; // We are just reading - so no locks required. $ record = $ DB -> get_record ( 'task_scheduled' , array ( 'classname' => $ classname ) , '*' , IGNORE_MISSING ) ; if ( ! $ record ) { return false ; } return self :: scheduled_task_from_record ( $ record ) ; }
This function load the scheduled task details for a given classname.

@param string $classname
@return \core\task\scheduled_task or false
This function load the scheduled task details for a given classname .