PHP Classes

File: ANYEM_SHARED/anyem.utils/AnyemDateTimeUtilsImpl.php

Recommend this page to a friend!
  Packages of Anis Halayem   Anyem   ANYEM_SHARED/anyem.utils/AnyemDateTimeUtilsImpl.php   Download  
File: ANYEM_SHARED/anyem.utils/AnyemDateTimeUtilsImpl.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Anyem
Exchange variable values between PHP servers
Author: By
Last change:
Date: 11 years ago
Size: 703 bytes
 

 

Contents

Class file image Download
<?php
require_once (__DIR__ . '/../anyem.utils/AnyemConfigReaderimpl.php');
require_once (__DIR__ . '/../anyem.utils/IAnyemDateTimeUtils.php');
/**
 * Description of AnyemUtils
 *
 * @author Anis.Halayem
 */

class AnyemDateTimeUtilsImpl implements IAnyemDateTimeUtils{
    private static $_initialized    = FALSE;
    
    public static function init() {
        if (self::$_initialized === FALSE) {
            $anyemConfigReader  = new AnyemConfigReaderImpl (__DIR__ . '/../config/anyem_config_shared.properties');
            date_default_timezone_set($anyemConfigReader->readConfig(self::DEFAULT_TIME_ZONE));
            self::$_initialized = TRUE;
        }
    }
}
AnyemDateTimeUtilsImpl::init();