|
Support Incident Tracker GIT4.x
|
Public Member Functions | |
| Status () | |
| add_extension_check ($extension, $name, $min_status) | |
| mysql_check () | |
| get_status () | |
Data Fields | |
| $statusentries = array() | |
Enter description here ...
Definition at line 27 of file status.class.php.
| add_extension_check | ( | $ | extension, |
| $ | name, | ||
| $ | min_status | ||
| ) |
Definition at line 42 of file status.class.php.
References $s.
{
$s = new StatusItem();
$s->checkname = $name;
$s->minimum = $GLOBALS['strInstalled'];
if (extension_loaded($extension))
{
$s->found = $GLOBALS['strInstalled'];
$s->status = INSTALL_OK;
}
else
{
$s->found = $GLOBALS['strNotInstalled'];
$s->status = $min_status;
}
$this->statusentries[] = $s;
}
| get_status | ( | ) |
Definition at line 73 of file status.class.php.
References $s.
{
$rtn = INSTALL_OK;
foreach ($this->statusentries AS $s)
{
if ($s->status > $rtn) $rtn = $s->status;
}
return $rtn;
}
| mysql_check | ( | ) |
Definition at line 61 of file status.class.php.
References $s.
{
$s = new StatusItem();
$s->checkname = 'MySQL Version';
$s->minimum = MIN_MYSQL_VERSION;
$s->found = mysql_get_server_info();
if (version_compare($s->found, $s->minimim, '>=')) $s->status = INSTALL_OK;
else $s->status = INSTALL_FATAL;
$this->statusentries[] = $s;
}
| Status | ( | ) |
Definition at line 30 of file status.class.php.
References $s.
{
$s = new StatusItem();
$s->checkname = 'PHP Version';
$s->minimum = MIN_PHP_VERSION;
$s->found = PHP_VERSION;
if (version_compare(PHP_VERSION, MIN_PHP_VERSION, '>=')) $s->status = INSTALL_OK;
else $s->status = INSTALL_FATAL;
$this->statusentries[] = $s;
}
| $statusentries = array() |
Definition at line 28 of file status.class.php.