Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F479979
PhabricatorSearchAbstractDocument.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
PhabricatorSearchAbstractDocument.php
View Options
<?php
final
class
PhabricatorSearchAbstractDocument
{
private
$phid
;
private
$documentType
;
private
$documentTitle
;
private
$documentCreated
;
private
$documentModified
;
private
$fields
=
array
();
private
$relationships
=
array
();
public
function
setPHID
(
$phid
)
{
$this
->
phid
=
$phid
;
return
$this
;
}
public
function
setDocumentType
(
$document_type
)
{
$this
->
documentType
=
$document_type
;
return
$this
;
}
public
function
setDocumentTitle
(
$title
)
{
$this
->
documentTitle
=
$title
;
$this
->
addField
(
PhabricatorSearchDocumentFieldType
::
FIELD_TITLE
,
$title
);
return
$this
;
}
public
function
addField
(
$field
,
$corpus
,
$aux_phid
=
null
)
{
$this
->
fields
[]
=
array
(
$field
,
$corpus
,
$aux_phid
);
return
$this
;
}
public
function
addRelationship
(
$type
,
$related_phid
,
$rtype
,
$time
)
{
$this
->
relationships
[]
=
array
(
$type
,
$related_phid
,
$rtype
,
$time
);
return
$this
;
}
public
function
setDocumentCreated
(
$date
)
{
$this
->
documentCreated
=
$date
;
return
$this
;
}
public
function
setDocumentModified
(
$date
)
{
$this
->
documentModified
=
$date
;
return
$this
;
}
public
function
getPHID
()
{
return
$this
->
phid
;
}
public
function
getDocumentType
()
{
return
$this
->
documentType
;
}
public
function
getDocumentTitle
()
{
return
$this
->
documentTitle
;
}
public
function
getDocumentCreated
()
{
return
$this
->
documentCreated
;
}
public
function
getDocumentModified
()
{
return
$this
->
documentModified
;
}
public
function
getFieldData
()
{
return
$this
->
fields
;
}
public
function
getRelationshipData
()
{
return
$this
->
relationships
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 9:52 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87441
Default Alt Text
PhabricatorSearchAbstractDocument.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment