Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
searchlib.php File Reference

@subpackage search More...

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. More...
 
 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. More...
 

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. More...
 
const TOKEN_USERID "5"
 

Detailed Description

@subpackage search

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later