public static function getInstance()
 {
     if (!self::$highValueDataStore) {
         self::$highValueDataStore = new HighValueRuleDataStore();
         return self::$highValueDataStore;
     }
     return self::$highValueDataStore;
 }
Пример #2
0
     $users = $UDS->FindUsersByLocSeqs($locationSeqs);
     $XML .= "<Users>";
     foreach ($users as $user) {
         $XML .= getUserXML($user);
     }
     $XML .= "</Users>";
 } elseif ($action == $ACTION_LOCATIONS) {
     $LDS = LocationDataStore::getInstance();
     $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) {