Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93153359
DiffusionRepositoryRemarkupRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 26, 15:03
Size
526 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 15:03 (2 d)
Engine
blob
Format
Raw Data
Handle
22584991
Attached To
rPH Phabricator
DiffusionRepositoryRemarkupRule.php
View Options
<?php
final
class
DiffusionRepositoryRemarkupRule
extends
PhabricatorRemarkupRuleObject
{
protected
function
getObjectNamePrefix
()
{
return
'r'
;
}
protected
function
getObjectIDPattern
()
{
return
'[A-Z]+'
;
}
protected
function
loadObjects
(
array
$ids
)
{
$viewer
=
$this
->
getEngine
()->
getConfig
(
'viewer'
);
$repositories
=
id
(
new
PhabricatorRepositoryQuery
())
->
setViewer
(
$viewer
)
->
withCallsigns
(
$ids
)
->
execute
();
return
mpull
(
$repositories
,
null
,
'getCallsign'
);
}
}
Event Timeline
Log In to Comment