From 5570ec51568916a61153243e1d13ecb21445a424 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 18 Apr 2014 17:52:45 -0700 Subject: [PATCH] Rename Releeph "Project" PHID type to "Product" Summary: Ref T3549. Test Plan: `grep`, loaded some pages Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T3549 Differential Revision: https://secure.phabricator.com/D8811 --- src/__phutil_library_map__.php | 4 ++-- ...hPHIDTypeProject.php => ReleephPHIDTypeProduct.php} | 10 +++++----- .../releeph/storage/ReleephProductTransaction.php | 2 +- src/applications/releeph/storage/ReleephProject.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/applications/releeph/phid/{ReleephPHIDTypeProject.php => ReleephPHIDTypeProduct.php} (71%) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index b94b0e69f5..322bc9f9bc 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -2531,7 +2531,7 @@ phutil_register_library_map(array( 'ReleephLevelFieldSpecification' => 'applications/releeph/field/specification/ReleephLevelFieldSpecification.php', 'ReleephOriginalCommitFieldSpecification' => 'applications/releeph/field/specification/ReleephOriginalCommitFieldSpecification.php', 'ReleephPHIDTypeBranch' => 'applications/releeph/phid/ReleephPHIDTypeBranch.php', - 'ReleephPHIDTypeProject' => 'applications/releeph/phid/ReleephPHIDTypeProject.php', + 'ReleephPHIDTypeProduct' => 'applications/releeph/phid/ReleephPHIDTypeProduct.php', 'ReleephPHIDTypeRequest' => 'applications/releeph/phid/ReleephPHIDTypeRequest.php', 'ReleephProductActionController' => 'applications/releeph/controller/project/ReleephProductActionController.php', 'ReleephProductController' => 'applications/releeph/controller/project/ReleephProductController.php', @@ -5527,7 +5527,7 @@ phutil_register_library_map(array( 'ReleephLevelFieldSpecification' => 'ReleephFieldSpecification', 'ReleephOriginalCommitFieldSpecification' => 'ReleephFieldSpecification', 'ReleephPHIDTypeBranch' => 'PhabricatorPHIDType', - 'ReleephPHIDTypeProject' => 'PhabricatorPHIDType', + 'ReleephPHIDTypeProduct' => 'PhabricatorPHIDType', 'ReleephPHIDTypeRequest' => 'PhabricatorPHIDType', 'ReleephProductActionController' => 'ReleephProductController', 'ReleephProductController' => 'ReleephController', diff --git a/src/applications/releeph/phid/ReleephPHIDTypeProject.php b/src/applications/releeph/phid/ReleephPHIDTypeProduct.php similarity index 71% rename from src/applications/releeph/phid/ReleephPHIDTypeProject.php rename to src/applications/releeph/phid/ReleephPHIDTypeProduct.php index 275ea4a277..9389547471 100644 --- a/src/applications/releeph/phid/ReleephPHIDTypeProject.php +++ b/src/applications/releeph/phid/ReleephPHIDTypeProduct.php @@ -1,6 +1,6 @@ $handle) { - $project = $objects[$phid]; + $product = $objects[$phid]; - $handle->setName($project->getName()); - $handle->setURI($project->getURI()); + $handle->setName($product->getName()); + $handle->setURI($product->getURI()); } } diff --git a/src/applications/releeph/storage/ReleephProductTransaction.php b/src/applications/releeph/storage/ReleephProductTransaction.php index 0a88262162..3a389499bc 100644 --- a/src/applications/releeph/storage/ReleephProductTransaction.php +++ b/src/applications/releeph/storage/ReleephProductTransaction.php @@ -10,7 +10,7 @@ final class ReleephProductTransaction } public function getApplicationTransactionType() { - return ReleephPHIDTypeProject::TYPECONST; + return ReleephPHIDTypeProduct::TYPECONST; } public function getColor() { diff --git a/src/applications/releeph/storage/ReleephProject.php b/src/applications/releeph/storage/ReleephProject.php index 989a556343..b05dd3f50b 100644 --- a/src/applications/releeph/storage/ReleephProject.php +++ b/src/applications/releeph/storage/ReleephProject.php @@ -33,7 +33,7 @@ final class ReleephProject extends ReleephDAO } public function generatePHID() { - return PhabricatorPHID::generateNewPHID(ReleephPHIDTypeProject::TYPECONST); + return PhabricatorPHID::generateNewPHID(ReleephPHIDTypeProduct::TYPECONST); } public function getDetail($key, $default = null) {