original_string: public static function get_lti_tools($params = array(), $limitfrom = 0, $limitnum = 0) {
          global $DB;
  
          $sql = "SELECT elt.*, e.name, e.courseid, e.status, e.enrolstartdate, e.enrolenddate, e.enrolperiod
                    FROM {enrol_lti_tools} elt
                    JOIN {enrol} e
                      ON elt.enrolid = e.id";
          if ($params) {
              $where = "WHERE";
              foreach ($params as $colname => $value) {
                  $sql .= " $where $colname = :$colname";
                  $where = "AND";
              }
          }
          $sql .= " ORDER BY elt.timecreated";
  
          return $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);
      }
code: public static function get_lti_tools($params = array(), $limitfrom = 0, $limitnum = 0) {
          global $DB;
  
          $sql = "SELECT elt.*, e.name, e.courseid, e.status, e.enrolstartdate, e.enrolenddate, e.enrolperiod
                    FROM {enrol_lti_tools} elt
                    JOIN {enrol} e
                      ON elt.enrolid = e.id";
          if ($params) {
              $where = "WHERE";
              foreach ($params as $colname => $value) {
                  $sql .= " $where $colname = :$colname";
                  $where = "AND";
              }
          }
          $sql .= " ORDER BY elt.timecreated";
  
          return $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);
      }
code_tokens: public static function get_lti_tools ( $ params = array ( ) , $ limitfrom = 0 , $ limitnum = 0 ) { global $ DB ; $ sql = "SELECT elt.*, e.name, e.courseid, e.status, e.enrolstartdate, e.enrolenddate, e.enrolperiod
                    FROM {enrol_lti_tools} elt
                    JOIN {enrol} e
                      ON elt.enrolid = e.id" ; if ( $ params ) { $ where = "WHERE" ; foreach ( $ params as $ colname => $ value ) { $ sql .= " $where $colname = :$colname" ; $ where = "AND" ; } } $ sql .= " ORDER BY elt.timecreated" ; return $ DB -> get_records_sql ( $ sql , $ params , $ limitfrom , $ limitnum ) ; }
docstring: Returns the LTI tools requested.
  
  @param array $params The list of SQL params (eg. array('columnname' => value, 'columnname2' => value)).
  @param int $limitfrom return a subset of records, starting at this point (optional).
  @param int $limitnum return a subset comprising this many records in total
  @return array of tools
docstring_tokens: Returns the LTI tools requested .