Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | final class DifferentialRevision extends DifferentialDAO | ||||
public function setAttachedPHIDs($type, array $phids) { | public function setAttachedPHIDs($type, array $phids) { | ||||
$this->attached[$type] = array_fill_keys($phids, array()); | $this->attached[$type] = array_fill_keys($phids, array()); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
DifferentialPHIDTypeRevision::TYPECONST); | DifferentialRevisionPHIDType::TYPECONST); | ||||
} | } | ||||
public function loadActiveDiff() { | public function loadActiveDiff() { | ||||
return id(new DifferentialDiff())->loadOneWhere( | return id(new DifferentialDiff())->loadOneWhere( | ||||
'revisionID = %d ORDER BY id DESC LIMIT 1', | 'revisionID = %d ORDER BY id DESC LIMIT 1', | ||||
$this->getID()); | $this->getID()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |