Changeset 6729

Show
Ignore:
Timestamp:
10/06/08 14:21:04 (2 months ago)
Author:
jmathis
Message:

create a spécial function for RRD

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/class/centreonGMT.class.php

    r6638 r6729  
    2020        var $listGTM; 
    2121        var $myGMT; 
     22        var $use; 
    2223         
    2324        function CentreonGMT(){ 
     
    5253                $this->listGTM['11'] = 11; 
    5354                $this->listGTM['12'] = 12; 
     55                 
     56                /* 
     57                 * Flag activ / inactiv 
     58                 */ 
     59                $this->use = 1; 
     60        } 
     61         
     62        function used(){ 
     63                return $this->use; 
    5464        } 
    5565         
     
    6171        function getGMTList() { 
    6272                return $this->listGTM; 
     73        } 
     74         
     75        function getMyGMT(){ 
     76                return "+".$this->myGMT; 
     77        } 
     78 
     79        function getMyGMTForRRD(){ 
     80                $gmt = (-1 * $this->myGMT); 
     81                if ($gmt > 0) 
     82                        $gmt = "+$gmt"; 
     83                return $gmt; 
    6384        } 
    6485