[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorSearchAbstractDocument { 4 5 private $phid; 6 private $documentType; 7 private $documentTitle; 8 private $documentCreated; 9 private $documentModified; 10 private $fields = array(); 11 private $relationships = array(); 12 13 public function setPHID($phid) { 14 $this->phid = $phid; 15 return $this; 16 } 17 18 public function setDocumentType($document_type) { 19 $this->documentType = $document_type; 20 return $this; 21 } 22 23 public function setDocumentTitle($title) { 24 $this->documentTitle = $title; 25 $this->addField(PhabricatorSearchField::FIELD_TITLE, $title); 26 return $this; 27 } 28 29 public function addField($field, $corpus, $aux_phid = null) { 30 $this->fields[] = array($field, $corpus, $aux_phid); 31 return $this; 32 } 33 34 public function addRelationship($type, $related_phid, $rtype, $time) { 35 $this->relationships[] = array($type, $related_phid, $rtype, $time); 36 return $this; 37 } 38 39 public function setDocumentCreated($date) { 40 $this->documentCreated = $date; 41 return $this; 42 } 43 44 public function setDocumentModified($date) { 45 $this->documentModified = $date; 46 return $this; 47 } 48 49 public function getPHID() { 50 return $this->phid; 51 } 52 53 public function getDocumentType() { 54 return $this->documentType; 55 } 56 57 public function getDocumentTitle() { 58 return $this->documentTitle; 59 } 60 61 public function getDocumentCreated() { 62 return $this->documentCreated; 63 } 64 65 public function getDocumentModified() { 66 return $this->documentModified; 67 } 68 69 public function getFieldData() { 70 return $this->fields; 71 } 72 73 public function getRelationshipData() { 74 return $this->relationships; 75 } 76 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |