3 final class PhabricatorSearchAbstractDocument
extends Phobject
{
7 private $documentTitle;
8 private $documentCreated;
9 private $documentModified;
10 private $fields = array();
11 private $relationships = array();
13 public function setPHID($phid) {
18 public function setDocumentType($document_type) {
19 $this->documentType
= $document_type;
23 public function setDocumentTitle($title) {
24 $this->documentTitle
= $title;
25 $this->addField(PhabricatorSearchDocumentFieldType
::FIELD_TITLE
, $title);
29 public function addField($field, $corpus, $aux_phid = null) {
30 $this->fields
[] = array($field, $corpus, $aux_phid);
34 public function addRelationship($type, $related_phid, $rtype, $time) {
35 $this->relationships
[] = array($type, $related_phid, $rtype, $time);
39 public function setDocumentCreated($date) {
40 $this->documentCreated
= $date;
44 public function setDocumentModified($date) {
45 $this->documentModified
= $date;
49 public function getPHID() {
53 public function getDocumentType() {
54 return $this->documentType
;
57 public function getDocumentTitle() {
58 return $this->documentTitle
;
61 public function getDocumentCreated() {
62 return $this->documentCreated
;
65 public function getDocumentModified() {
66 return $this->documentModified
;
69 public function getFieldData() {
73 public function getRelationshipData() {
74 return $this->relationships
;