original_string: public static function get_recordset_for_due_and_incomplete() {
          global $DB;
          $sql = "duedate > 0 AND duedate < :now AND status = :status";
          $params = array('now' => time(), 'status' => self::STATUS_ACTIVE);
          return $DB->get_recordset_select(self::TABLE, $sql, $params);
      }
code: public static function get_recordset_for_due_and_incomplete() {
          global $DB;
          $sql = "duedate > 0 AND duedate < :now AND status = :status";
          $params = array('now' => time(), 'status' => self::STATUS_ACTIVE);
          return $DB->get_recordset_select(self::TABLE, $sql, $params);
      }
code_tokens: public static function get_recordset_for_due_and_incomplete ( ) { global $ DB ; $ sql = "duedate > 0 AND duedate < :now AND status = :status" ; $ params = array ( 'now' => time ( ) , 'status' => self :: STATUS_ACTIVE ) ; return $ DB -> get_recordset_select ( self :: TABLE , $ sql , $ params ) ; }
docstring: Get the recordset of the plans that are due, incomplete and not draft.
  
  @return \moodle_recordset
docstring_tokens: Get the recordset of the plans that are due incomplete and not draft .