mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Adding some type names to object handles
Summary: I browsed through the applications and searched for all flaggable objects and gave them names. Only flaggable ones, since they were the only ones I deemed important for my future diff(s). Also, I thought that this method may be deprecated in some way, since it only included some older applications Also adding proper fallback. Without makes my future diff(s) non-fatal in a user-confusing way (imagine you are displaying the object type ## ## (`null` ^^)) Also usable for Refs T1048 Test Plan: Used in a future diff, names appear, fallback works as expected. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1048 Differential Revision: https://secure.phabricator.com/D5514
This commit is contained in:
parent
d9cd458946
commit
48f1a578f8
1 changed files with 10 additions and 2 deletions
|
@ -111,10 +111,18 @@ final class PhabricatorObjectHandle {
|
|||
PhabricatorPHIDConstants::PHID_TYPE_TASK => 'Task',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_DREV => 'Revision',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_CMIT => 'Commit',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_WIKI => 'Phriction',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_WIKI => 'Phriction Document',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_MCRO => 'Image Macro',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_MOCK => 'Pholio Mock',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_FILE => 'File',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_BLOG => 'Blog',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_POST => 'Post',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_QUES => 'Question',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_PVAR => 'Variable',
|
||||
PhabricatorPHIDConstants::PHID_TYPE_PSTE => 'Paste',
|
||||
);
|
||||
|
||||
return idx($map, $this->getType());
|
||||
return idx($map, $this->getType(), $this->getType());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue