private function getUprecords()
    {
        $result = array();
        $i = 0;

        foreach ($this->_lines as $line) {
            if (($i > 1) and (strpos($line, '---') === false)) {
                $buffer = preg_split("/\s*[ |]\s+/", ltrim(ltrim($line, '->'), ' '));
                if (defined('PSI_PLUGIN_UPRECORDS_SHORT_MODE') &&
                   (PSI_PLUGIN_UPRECORDS_SHORT_MODE === true) &&
                   !is_numeric($buffer[0])) {
                    break;
                }

                if (strpos($line, '->') !== false) {
                   if (defined('PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK') && (PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK === true)) {
                        $buffer[0] .= ' *';
                    } else {
                        $buffer[0] = '-> '.$buffer[0];
                    }
                }

                if (count($buffer) > 4) {
                    $buffer[3] = $buffer[3].' '.$buffer[4];
                }

                $result[$i]['hash'] = $buffer[0];
                $result[$i]['Uptime'] = $buffer[1];
                $result[$i]['System'] = $buffer[2];
                //Date formating
                $result[$i]['Bootup'] = preg_replace("/^(\S+)(\s+)/", "$1,$2", preg_replace("/^(\S+\s+\S+\s+)(\d)(\s+)/", "$1 0$2$3", trim($buffer[3])." GMT"));
            }
            $i++;
        }

        return $result;
    }
private function getUprecords()
    {
        $result = array();
        $i = 0;

        foreach ($this->_lines as $line) {
            if (($i > 1) and (strpos($line, '---') === false)) {
                $buffer = preg_split("/\s*[ |]\s+/", ltrim(ltrim($line, '->'), ' '));
                if (defined('PSI_PLUGIN_UPRECORDS_SHORT_MODE') &&
                   (PSI_PLUGIN_UPRECORDS_SHORT_MODE === true) &&
                   !is_numeric($buffer[0])) {
                    break;
                }

                if (strpos($line, '->') !== false) {
                   if (defined('PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK') && (PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK === true)) {
                        $buffer[0] .= ' *';
                    } else {
                        $buffer[0] = '-> '.$buffer[0];
                    }
                }

                if (count($buffer) > 4) {
                    $buffer[3] = $buffer[3].' '.$buffer[4];
                }

                $result[$i]['hash'] = $buffer[0];
                $result[$i]['Uptime'] = $buffer[1];
                $result[$i]['System'] = $buffer[2];
                //Date formating
                $result[$i]['Bootup'] = preg_replace("/^(\S+)(\s+)/", "$1,$2", preg_replace("/^(\S+\s+\S+\s+)(\d)(\s+)/", "$1 0$2$3", trim($buffer[3])." GMT"));
            }
            $i++;
        }

        return $result;
    }
private function getUprecords ( ) { $ result = array ( ) ; $ i = 0 ; foreach ( $ this -> _lines as $ line ) { if ( ( $ i > 1 ) and ( strpos ( $ line , '---' ) === false ) ) { $ buffer = preg_split ( "/\s*[ |]\s+/" , ltrim ( ltrim ( $ line , '->' ) , ' ' ) ) ; if ( defined ( 'PSI_PLUGIN_UPRECORDS_SHORT_MODE' ) && ( PSI_PLUGIN_UPRECORDS_SHORT_MODE === true ) && ! is_numeric ( $ buffer [ 0 ] ) ) { break ; } if ( strpos ( $ line , '->' ) !== false ) { if ( defined ( 'PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK' ) && ( PSI_PLUGIN_UPRECORDS_DENOTE_BY_ASTERISK === true ) ) { $ buffer [ 0 ] .= ' *' ; } else { $ buffer [ 0 ] = '-> ' . $ buffer [ 0 ] ; } } if ( count ( $ buffer ) > 4 ) { $ buffer [ 3 ] = $ buffer [ 3 ] . ' ' . $ buffer [ 4 ] ; } $ result [ $ i ] [ 'hash' ] = $ buffer [ 0 ] ; $ result [ $ i ] [ 'Uptime' ] = $ buffer [ 1 ] ; $ result [ $ i ] [ 'System' ] = $ buffer [ 2 ] ; //Date formating $ result [ $ i ] [ 'Bootup' ] = preg_replace ( "/^(\S+)(\s+)/" , "$1,$2" , preg_replace ( "/^(\S+\s+\S+\s+)(\d)(\s+)/" , "$1 0$2$3" , trim ( $ buffer [ 3 ] ) . " GMT" ) ) ; } $ i ++ ; } return $ result ; }
get uprecords information

@return array uprecords in array with label
get uprecords information