original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: This function load the scheduled task details for a given classname.
  
  @param string $classname
  @return \core\task\scheduled_task or false
docstring_tokens: This function load the scheduled task details for a given classname .