Subversion Repositories ALCASAR

Rev

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

Rev 2775 Rev 2976
Line 36... Line 36...
36
     * get all information from all configured ups and store output in internal array
36
     * get all information from all configured ups and store output in internal array
37
     */
37
     */
38
    public function __construct()
38
    public function __construct()
39
    {
39
    {
40
        parent::__construct();
40
        parent::__construct();
-
 
41
        if (PSI_OS == 'Darwin') {
41
        $temp = "";
42
            $temp = "";
42
        if (CommonFunctions::executeProgram('pmset', '-g batt', $temp) && !empty($temp)) {
43
            if (CommonFunctions::executeProgram('pmset', '-g batt', $temp) && !empty($temp)) {
43
            $this->_output[] = $temp;
44
                $this->_output[] = $temp;
-
 
45
            }
44
        }
46
        }
45
    }
47
    }
46
 
48
 
47
    /**
49
    /**
48
     * parse the input and store data in resultset for xml generation
50
     * parse the input and store data in resultset for xml generation