Support Incident Tracker GIT4.x
Status Class Reference

Public Member Functions

 Status ()
 add_extension_check ($extension, $name, $min_status)
 mysql_check ()
 get_status ()

Data Fields

 $statusentries = array()

Detailed Description

Enter description here ...

Author:
Paul Heaney

Definition at line 27 of file status.class.php.


Member Function Documentation

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;
    }

Field Documentation

$statusentries = array()

Definition at line 28 of file status.class.php.


The documentation for this class was generated from the following file: