public static function getInstance()
 {
     if (!self::$manikGenerator) {
         self::$manikGenerator = new ManikgarhGenerator();
         self::$channelsList = array();
         array_push(self::$channelsList, 'Rack Temperature');
         array_push(self::$channelsList, 'SO2');
         array_push(self::$channelsList, 'NO');
         array_push(self::$channelsList, 'NO2');
         array_push(self::$channelsList, 'NOx');
         array_push(self::$channelsList, 'PM10');
         array_push(self::$channelsList, 'PM2.5');
         return self::$manikGenerator;
     }
     return self::$manikGenerator;
 }
<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "/Utils/DateUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/FileSystemUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/ConvertorUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/StringUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/WQDFileDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/WQDDataDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/FolderDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/ChannelConfigurationDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/Generators/ManikgarhGenerator.php";
$manigarhGenerator = ManikgarhGenerator::getInstance();
$manigarhGenerator->generateFile();
echo "done";