getPath(); if (PhabricatorEnv::isSelfURI($uri_string)) { $matches = null; if (preg_match('#^/D(\d+)$#', $path, $matches)) { return (int)$matches[1]; } } return null; } public function readFieldValueFromObject(DifferentialRevision $revision) { return $revision->getID(); } public function readFieldValueFromConduit($value) { if (is_int($value)) { $value = (string)$value; } return $this->readStringFieldValueFromConduit($value); } public function renderFieldValue($value) { if (!strlen($value)) { return null; } return PhabricatorEnv::getProductionURI('/D'.$value); } public function getFieldTransactions($value) { return array(); } }