Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4316819
D26025.1748097965.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
14 KB
Referenced Files
None
Subscribers
None
D26025.1748097965.diff
View Options
diff --git a/src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php b/src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php
--- a/src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php
+++ b/src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php
@@ -47,6 +47,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^E[1-9]\d*$/i', $name);
}
diff --git a/src/applications/conpherence/phid/PhabricatorConpherenceThreadPHIDType.php b/src/applications/conpherence/phid/PhabricatorConpherenceThreadPHIDType.php
--- a/src/applications/conpherence/phid/PhabricatorConpherenceThreadPHIDType.php
+++ b/src/applications/conpherence/phid/PhabricatorConpherenceThreadPHIDType.php
@@ -40,6 +40,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^Z\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php b/src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
--- a/src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
+++ b/src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
@@ -41,6 +41,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^C\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php b/src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php
--- a/src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php
+++ b/src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php
@@ -47,6 +47,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^W\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/differential/phid/DifferentialRevisionPHIDType.php b/src/applications/differential/phid/DifferentialRevisionPHIDType.php
--- a/src/applications/differential/phid/DifferentialRevisionPHIDType.php
+++ b/src/applications/differential/phid/DifferentialRevisionPHIDType.php
@@ -47,6 +47,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^D[1-9]\d*$/i', $name);
}
diff --git a/src/applications/files/phid/PhabricatorFileFilePHIDType.php b/src/applications/files/phid/PhabricatorFileFilePHIDType.php
--- a/src/applications/files/phid/PhabricatorFileFilePHIDType.php
+++ b/src/applications/files/phid/PhabricatorFileFilePHIDType.php
@@ -45,6 +45,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^F\d*[1-9]\d*$/', $name);
}
diff --git a/src/applications/fund/phid/FundInitiativePHIDType.php b/src/applications/fund/phid/FundInitiativePHIDType.php
--- a/src/applications/fund/phid/FundInitiativePHIDType.php
+++ b/src/applications/fund/phid/FundInitiativePHIDType.php
@@ -46,6 +46,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^I\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/harbormaster/phid/HarbormasterBuildablePHIDType.php b/src/applications/harbormaster/phid/HarbormasterBuildablePHIDType.php
--- a/src/applications/harbormaster/phid/HarbormasterBuildablePHIDType.php
+++ b/src/applications/harbormaster/phid/HarbormasterBuildablePHIDType.php
@@ -56,6 +56,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^B\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/herald/phid/HeraldRulePHIDType.php b/src/applications/herald/phid/HeraldRulePHIDType.php
--- a/src/applications/herald/phid/HeraldRulePHIDType.php
+++ b/src/applications/herald/phid/HeraldRulePHIDType.php
@@ -45,6 +45,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^H\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php b/src/applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php
--- a/src/applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php
+++ b/src/applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php
@@ -42,6 +42,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^L\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/maniphest/phid/ManiphestTaskPHIDType.php b/src/applications/maniphest/phid/ManiphestTaskPHIDType.php
--- a/src/applications/maniphest/phid/ManiphestTaskPHIDType.php
+++ b/src/applications/maniphest/phid/ManiphestTaskPHIDType.php
@@ -44,6 +44,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^T\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/owners/phid/PhabricatorOwnersPackagePHIDType.php b/src/applications/owners/phid/PhabricatorOwnersPackagePHIDType.php
--- a/src/applications/owners/phid/PhabricatorOwnersPackagePHIDType.php
+++ b/src/applications/owners/phid/PhabricatorOwnersPackagePHIDType.php
@@ -54,6 +54,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^O\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/passphrase/phid/PassphraseCredentialPHIDType.php b/src/applications/passphrase/phid/PassphraseCredentialPHIDType.php
--- a/src/applications/passphrase/phid/PassphraseCredentialPHIDType.php
+++ b/src/applications/passphrase/phid/PassphraseCredentialPHIDType.php
@@ -44,6 +44,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^K\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/paste/phid/PhabricatorPastePastePHIDType.php b/src/applications/paste/phid/PhabricatorPastePastePHIDType.php
--- a/src/applications/paste/phid/PhabricatorPastePastePHIDType.php
+++ b/src/applications/paste/phid/PhabricatorPastePastePHIDType.php
@@ -41,6 +41,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^P\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php b/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
--- a/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
+++ b/src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
@@ -86,6 +86,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^@.+/', $name);
}
diff --git a/src/applications/phid/type/PhabricatorPHIDType.php b/src/applications/phid/type/PhabricatorPHIDType.php
--- a/src/applications/phid/type/PhabricatorPHIDType.php
+++ b/src/applications/phid/type/PhabricatorPHIDType.php
@@ -125,6 +125,11 @@
array $handles,
array $objects);
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return false;
}
diff --git a/src/applications/pholio/phid/PholioMockPHIDType.php b/src/applications/pholio/phid/PholioMockPHIDType.php
--- a/src/applications/pholio/phid/PholioMockPHIDType.php
+++ b/src/applications/pholio/phid/PholioMockPHIDType.php
@@ -45,6 +45,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^M\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/phriction/phid/PhrictionDocumentPHIDType.php b/src/applications/phriction/phid/PhrictionDocumentPHIDType.php
--- a/src/applications/phriction/phid/PhrictionDocumentPHIDType.php
+++ b/src/applications/phriction/phid/PhrictionDocumentPHIDType.php
@@ -47,6 +47,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/.*\/$/', $name);
}
diff --git a/src/applications/phurl/phid/PhabricatorPhurlURLPHIDType.php b/src/applications/phurl/phid/PhabricatorPhurlURLPHIDType.php
--- a/src/applications/phurl/phid/PhabricatorPhurlURLPHIDType.php
+++ b/src/applications/phurl/phid/PhabricatorPhurlURLPHIDType.php
@@ -43,6 +43,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^U[1-9]\d*$/i', $name);
}
diff --git a/src/applications/ponder/phid/PonderQuestionPHIDType.php b/src/applications/ponder/phid/PonderQuestionPHIDType.php
--- a/src/applications/ponder/phid/PonderQuestionPHIDType.php
+++ b/src/applications/ponder/phid/PonderQuestionPHIDType.php
@@ -40,6 +40,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^Q\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/project/phid/PhabricatorProjectProjectPHIDType.php b/src/applications/project/phid/PhabricatorProjectProjectPHIDType.php
--- a/src/applications/project/phid/PhabricatorProjectProjectPHIDType.php
+++ b/src/applications/project/phid/PhabricatorProjectProjectPHIDType.php
@@ -70,6 +70,11 @@
return '[^\s,#]+';
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
$fragment = self::getProjectMonogramPatternFragment();
return preg_match('/^#'.$fragment.'$/i', $name);
diff --git a/src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php b/src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
--- a/src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
+++ b/src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
@@ -96,6 +96,11 @@
'[a-f0-9]{'.$min_unqualified.',40}';
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
$pattern = self::getCommitObjectNamePattern();
return preg_match('(^'.$pattern.'$)', $name);
diff --git a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
--- a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
+++ b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
@@ -53,6 +53,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^(r[A-Z]+|R[1-9]\d*)\z/', $name);
}
diff --git a/src/applications/slowvote/phid/PhabricatorSlowvotePollPHIDType.php b/src/applications/slowvote/phid/PhabricatorSlowvotePollPHIDType.php
--- a/src/applications/slowvote/phid/PhabricatorSlowvotePollPHIDType.php
+++ b/src/applications/slowvote/phid/PhabricatorSlowvotePollPHIDType.php
@@ -38,6 +38,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^V\d*[1-9]\d*$/i', $name);
}
diff --git a/src/applications/spaces/phid/PhabricatorSpacesNamespacePHIDType.php b/src/applications/spaces/phid/PhabricatorSpacesNamespacePHIDType.php
--- a/src/applications/spaces/phid/PhabricatorSpacesNamespacePHIDType.php
+++ b/src/applications/spaces/phid/PhabricatorSpacesNamespacePHIDType.php
@@ -48,6 +48,11 @@
}
}
+ /**
+ * Check whether a named object is of this PHID type
+ * @param string $name Object name
+ * @return bool True if the named object is of this PHID type
+ */
public function canLoadNamedObject($name) {
return preg_match('/^S[1-9]\d*$/i', $name);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 24, 14:46 (13 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1644507
Default Alt Text
D26025.1748097965.diff (14 KB)
Attached To
Mode
D26025: Add PHPDoc to PhabricatorPHIDType::canLoadNamedObject()
Attached
Detach File
Event Timeline
Log In to Comment