mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
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
This commit is contained in:
parent
fde4ccf9b2
commit
5570ec5156
4 changed files with 9 additions and 9 deletions
|
@ -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',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
final class ReleephPHIDTypeProject extends PhabricatorPHIDType {
|
||||
final class ReleephPHIDTypeProduct extends PhabricatorPHIDType {
|
||||
|
||||
const TYPECONST = 'REPR';
|
||||
|
||||
|
@ -9,7 +9,7 @@ final class ReleephPHIDTypeProject extends PhabricatorPHIDType {
|
|||
}
|
||||
|
||||
public function getTypeName() {
|
||||
return pht('Releeph Project');
|
||||
return pht('Releeph Product');
|
||||
}
|
||||
|
||||
public function newObject() {
|
||||
|
@ -30,10 +30,10 @@ final class ReleephPHIDTypeProject extends PhabricatorPHIDType {
|
|||
array $objects) {
|
||||
|
||||
foreach ($handles as $phid => $handle) {
|
||||
$project = $objects[$phid];
|
||||
$product = $objects[$phid];
|
||||
|
||||
$handle->setName($project->getName());
|
||||
$handle->setURI($project->getURI());
|
||||
$handle->setName($product->getName());
|
||||
$handle->setURI($product->getURI());
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ final class ReleephProductTransaction
|
|||
}
|
||||
|
||||
public function getApplicationTransactionType() {
|
||||
return ReleephPHIDTypeProject::TYPECONST;
|
||||
return ReleephPHIDTypeProduct::TYPECONST;
|
||||
}
|
||||
|
||||
public function getColor() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue