Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96620181
AlmanacBindingsSearchEngineAttachment.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
Sun, Dec 29, 01:26
Size
697 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 01:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23216614
Attached To
rPH Phabricator
AlmanacBindingsSearchEngineAttachment.php
View Options
<?php
final
class
AlmanacBindingsSearchEngineAttachment
extends
AlmanacSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Almanac Bindings'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get Almanac bindings for the service.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needProperties
(
true
);
$query
->
needBindings
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$bindings
=
array
();
foreach
(
$object
->
getBindings
()
as
$binding
)
{
$bindings
[]
=
$this
->
getAlmanacBindingDictionary
(
$binding
);
}
return
array
(
'bindings'
=>
$bindings
,
);
}
}
Event Timeline
Log In to Comment