Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555052
PhabricatorLegalpadSignaturesSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorLegalpadSignaturesSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorLegalpadSignaturesSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Document signers'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the signer list for the project.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needSignatures
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$signatures
=
array
();
foreach
(
$object
->
getSignatures
()
as
$signature
)
{
$signatures
[]
=
array
(
'phid'
=>
$signature
->
getPHID
(),
'signerPHID'
=>
$signature
->
getSignerPHID
(),
'exemptionPHID'
=>
$signature
->
getExemptionPHID
(),
'isExemption'
=>
$signature
->
getIsExemption
(),
'signerName'
=>
$signature
->
getSignerName
(),
'signerEmail'
=>
$signature
->
getSignerEmail
(),
'documentVersion'
=>
$signature
->
getDocumentVersion
(),
'dateCreated'
=>
(
int
)
$signature
->
getDateCreated
(),
);
}
return
array
(
'signatures'
=>
$signatures
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:22 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124783
Default Alt Text
PhabricatorLegalpadSignaturesSearchEngineAttachment.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment