Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100803791
PhabricatorSearchAbstractDocument.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, Feb 2, 21:59
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 4, 21:59 (2 d)
Engine
blob
Format
Raw Data
Handle
24027751
Attached To
rPH Phabricator
PhabricatorSearchAbstractDocument.php
View Options
<?php
final
class
PhabricatorSearchAbstractDocument
extends
Phobject
{
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
;
}
}
Event Timeline
Log In to Comment