Subversion Repositories ALCASAR

Rev

Rev 2770 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2770 Rev 2976
Line 32... Line 32...
32
     * read the MBM5.csv file and fill the private arrays
32
     * read the MBM5.csv file and fill the private arrays
33
     */
33
     */
34
    public function __construct()
34
    public function __construct()
35
    {
35
    {
36
        parent::__construct();
36
        parent::__construct();
-
 
37
        if ((PSI_OS == 'WINNT') && !defined('PSI_EMU_HOSTNAME')) {
37
        $delim = "/;/";
38
            $delim = "/;/";
38
        CommonFunctions::rfts(PSI_APP_ROOT."/data/MBM5.csv", $buffer);
39
            CommonFunctions::rfts(PSI_APP_ROOT."/data/MBM5.csv", $buffer);
39
        if (strpos($buffer, ";") === false) {
40
            if (strpos($buffer, ";") === false) {
40
            $delim = "/,/";
41
                $delim = "/,/";
-
 
42
            }
-
 
43
            $buffer = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
-
 
44
            $this->_buf_label = preg_split($delim, substr($buffer[0], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
-
 
45
            $this->_buf_value = preg_split($delim, substr($buffer[1], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
41
        }
46
        }
42
        $buffer = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
-
 
43
        $this->_buf_label = preg_split($delim, substr($buffer[0], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
-
 
44
        $this->_buf_value = preg_split($delim, substr($buffer[1], 0, -2), -1, PREG_SPLIT_NO_EMPTY);
-
 
45
    }
47
    }
46
 
48
 
47
    /**
49
    /**
48
     * get temperature information
50
     * get temperature information
49
     *
51
     *