public static function getInstance()
 {
     if (!self::$CDataStore) {
         self::$CDataStore = new ConfigurationDataStore();
         return self::$CDataStore;
     }
     return self::$CDataStore;
 }
Example #2
0
     $locations = $LDS->FindBySeqs($locationSeqs);
     $XML .= "<Locations>";
     foreach ($locations as $location) {
         $XML .= getLocationXML($location);
     }
     $XML .= "</Locations>";
 } elseif ($action == $ACTION_HIGHVALUERULES) {
     $HVRDS = HighValueRuleDataStore::getInstance();
     $rules = $HVRDS->FindByLocationSeqs($locationSeqs);
     $XML .= "<HighValueRules>";
     foreach ($rules as $rule) {
         $XML .= getHighValueRuleXML($rule);
     }
     $XML .= "</HighValueRules>";
 } elseif ($action == $ACTION_CONFIGURATIONS) {
     $CDS = ConfigurationDataStore::getInstance();
     $configs = $CDS->FindAll();
     $XML .= "<Configurations>";
     foreach ($configs as $config) {
         $XML .= getConfigurationXML($config);
     }
     $XML .= "</Configurations>";
 } elseif ($action == $ACTION_CHANNELCONFIGURATIONS) {
     $CCDS = ChannelConfigurationDataStore::getInstance();
     $configs = $CCDS->FindByLocSeqs($locationSeqs);
     $XML .= "<ChannelConfigurations>";
     foreach ($configs as $config) {
         if ($config->getChannelNumber() != "") {
             $XML .= getChannelConfigurationXML($config);
         }
     }