Exemple #1
0
    $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;
}
if ($includeCode) {
    foreach ($tags_search as $tag) {
        if (in_array($tag, $exlude_tags_from_code)) {
            continue;
        }
        $code[] = '$this->' . $baseTag . '_uiconfs_' . $tag . ' = $this->' . uiConfDeploymentCodeGenerator::SEARCH_BY_TAG_FUNCTION_NAME . '("' . $baseTag . '_' . $tag . '");';
    }