Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/storage/ReleephRequest.php
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | public function getSummaryForDisplay() { | ||||
} | } | ||||
return $summary; | return $summary; | ||||
} | } | ||||
/* -( Loading external objects )------------------------------------------- */ | /* -( Loading external objects )------------------------------------------- */ | ||||
public function loadPhabricatorRepositoryCommit() { | public function loadPhabricatorRepositoryCommit() { | ||||
return $this->loadOneRelative( | return id(new PhabricatorRepositoryCommit())->loadOneWhere( | ||||
new PhabricatorRepositoryCommit(), | 'phid = %s', | ||||
'phid', | $this->getRequestCommitPHID()); | ||||
'getRequestCommitPHID'); | |||||
} | } | ||||
public function loadPhabricatorRepositoryCommitData() { | public function loadPhabricatorRepositoryCommitData() { | ||||
$commit = $this->loadPhabricatorRepositoryCommit(); | $commit = $this->loadPhabricatorRepositoryCommit(); | ||||
if ($commit) { | if ($commit) { | ||||
return $commit->loadOneRelative( | return id(new PhabricatorRepositoryCommitData())->loadOneWhere( | ||||
new PhabricatorRepositoryCommitData(), | 'commitID = %d', | ||||
'commitID'); | $commit->getID()); | ||||
} | } | ||||
} | } | ||||
/* -( State change helpers )----------------------------------------------- */ | /* -( State change helpers )----------------------------------------------- */ | ||||
public function setUserIntent(PhabricatorUser $user, $intent) { | public function setUserIntent(PhabricatorUser $user, $intent) { | ||||
$this->userIntents[$user->getPHID()] = $intent; | $this->userIntents[$user->getPHID()] = $intent; | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |