Changeset View
Changeset View
Standalone View
Standalone View
src/ref/paste/ArcanistPasteRef.php
Show All 24 Lines | public function getPHID() { | ||||
return idx($this->parameters, 'phid'); | return idx($this->parameters, 'phid'); | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
return idxv($this->parameters, array('fields', 'title')); | return idxv($this->parameters, array('fields', 'title')); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
return idxv($this->parameters, array('fields', 'uri')); | $uri = idxv($this->parameters, array('fields', 'uri')); | ||||
if ($uri === null) { | |||||
$uri = '/'.$this->getMonogram(); | |||||
} | |||||
return $uri; | |||||
} | } | ||||
public function getContent() { | public function getContent() { | ||||
return idxv($this->parameters, array('attachments', 'content', 'content')); | return idxv($this->parameters, array('attachments', 'content', 'content')); | ||||
} | } | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'P'.$this->getID(); | return 'P'.$this->getID(); | ||||
Show All 11 Lines |