4 # FILE: MysqlSystemVariables.php
6 # Part of the Collection Workflow Integration System (CWIS)
7 # Copyright 2013 Edward Almasy and Internet Scout Research Group
8 # http://scout.wisc.edu/cwis/
23 $DB->
Query(
"SHOW VARIABLES");
24 while (FALSE !== ($Row = $DB->
FetchRow()))
26 $this->Variables[$Row[
"Variable_name"]] = $Row[
"Value"];
35 public function Get($Variable)
37 return (isset($this->Variables[$Variable]))
38 ? $this->Variables[$Variable] : NULL;
48 # default stop word list for MySQL 5
49 static $DefaultList = array(
596 if (is_readable($this->
Get(
"ft_stopword_file")))
599 if (!isset($ActualList))
601 $ActualList = explode(
"\n",
602 file_get_contents($this->
Get(
"ft_stopword_file")));
607 # fall back to default list
SQL database abstraction object with smart query caching.
GetStopWords()
Get the MySQL stopword list the database is using.
FetchRow()
Get next database row retrieved by most recent query.
Get($Variable)
Get the specified MySQL system variable.
Class that allows permits easier access to MySQL system variables.
Query($QueryString, $FieldName="")
Query database (with caching if enabled).
__construct(Database $DB)
Object Constructor.