Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F468167
DifferentialDiffRepositoryProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
DifferentialDiffRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DifferentialDiffRepositoryProjectsHeraldField
extends
DifferentialDiffHeraldField
{
const
FIELDCONST
=
'differential.diff.repository.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$repository
=
$this
->
getAdapter
()->
loadRepository
();
if
(!
$repository
)
{
return
array
();
}
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$repository
->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_LIST
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_PROJECT
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 4:51 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80414
Default Alt Text
DifferentialDiffRepositoryProjectsHeraldField.php (949 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment