Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Classes | |
class | search_lexer |
This class does the heavy lifting of lexing the search string into tokens. More... | |
class | search_parser |
This class takes care of sticking the proper token type/value pairs into the parsed token array. More... | |
class | search_token |
Class to hold token/value pairs after they're parsed. More... | |
Functions | |
object | search_generate_SQL ($parsetree, $datafield, $metafield, $mainidfield, $useridfield, $userfirstnamefield, $userlastnamefield, $timefield, $instancefield, $tagfields=[]) |
Primitive function to generate a SQL string from a parse tree. | |
search_generate_text_SQL ($parsetree, $datafield, $metafield, $mainidfield, $useridfield, $userfirstnamefield, $userlastnamefield, $timefield, $instancefield) | |
Primitive function to generate a SQL string from a parse tree using TEXT indexes. | |
Variables | |
const | TOKEN_DATEFROM "6" |
const | TOKEN_DATETO "7" |
const | TOKEN_EXACT "2" |
const | TOKEN_INSTANCE "8" |
const | TOKEN_META "1" |
const | TOKEN_NEGATE "3" |
const | TOKEN_STRING "4" |
const | TOKEN_TAGS "9" |
const | TOKEN_USER "0" |
Constants for the various types of tokens. | |
const | TOKEN_USERID "5" |