Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120483872
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
Fri, Jul 4, 17:02
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jul 6, 17:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27195368
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