$tags_search = array(); foreach ($sections as $section) { $sectionName = trim($section); $sectionBase = $sectionName . 's'; $baseSwfUrl = $confObj->{$sectionName}->{$sectionBase}->swfpath; $swfName = $confObj->{$sectionName}->{$sectionBase}->swfname; $objType = $confObj->{$sectionName}->{$sectionBase}->objtype; echo "creating uiconfs from section {$sectionBase} with default values ( {$baseSwfUrl} , {$swfName} , {$objType} )" . PHP_EOL; $num = 1; while (isset($confObj->{$sectionName}->{$sectionBase}->{$sectionName . $num})) { echo "{$sectionName}{$num} , {$baseSwfUrl} , {$swfName} , {$objType}" . PHP_EOL; $configObj = $confObj->{$sectionName}->{$sectionBase}->{$sectionName . $num}; $tags_search[$configObj->usage] = $configObj->usage; $uiconf = uiConfDeployment::populateUiconfFromConfig($configObj, $baseSwfUrl, $swfName, $objType, $arguments['disableUrlHashing']); if ($uiconf) { $uiconf_id = uiConfDeployment::addUiConf($kclient, $uiconf); if ($configObj->usage == 'uploadforkae' || $configObj->usage == 'uploadforkse') { $kcw_for_editors[$configObj->identifier] = $uiconf_id; } if ($configObj->usage == 'template_uiconf_for_appstudio') { $kdp_for_studio[$configObj->identifier] = $uiconf_id; } if ($configObj->features_replace_identifier == 'REPLACE_PLAYER_ID') { uiConfDeployment::updatePlayerIdInFeaturesFile($uiconf, $uiconf_id, '@@REPLACE_PLAYER_ID@@'); } } else { echo "failed to create uiconf object ({$sectionBase}: {$sectionName}{$num}) due to missing values. check your config.ini" . PHP_EOL; } $num++; } echo PHP_EOL;