[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 $names = array( 4 'CommandBuildStepImplementation', 5 'LeaseHostBuildStepImplementation', 6 'PublishFragmentBuildStepImplementation', 7 'SleepBuildStepImplementation', 8 'UploadArtifactBuildStepImplementation', 9 'WaitForPreviousBuildStepImplementation', 10 ); 11 12 $tables = array( 13 id(new HarbormasterBuildStep())->getTableName(), 14 id(new HarbormasterBuildTarget())->getTableName(), 15 ); 16 17 echo "Renaming Harbormaster classes...\n"; 18 19 $conn_w = id(new HarbormasterBuildStep())->establishConnection('w'); 20 foreach ($names as $name) { 21 $old = $name; 22 $new = 'Harbormaster'.$name; 23 24 echo "Renaming {$old} -> {$new}...\n"; 25 foreach ($tables as $table) { 26 queryfx( 27 $conn_w, 28 'UPDATE %T SET className = %s WHERE className = %s', 29 $table, 30 $new, 31 $old); 32 } 33 } 34 35 echo "Done.\n";
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |