Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommit.php
Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | public function getAuthorDisplayPHID() { | ||||
if ($this->hasAuthorIdentity()) { | if ($this->hasAuthorIdentity()) { | ||||
return $this->getAuthorIdentity()->getIdentityDisplayPHID(); | return $this->getAuthorIdentity()->getIdentityDisplayPHID(); | ||||
} | } | ||||
$data = $this->getCommitData(); | $data = $this->getCommitData(); | ||||
return $data->getCommitDetail('authorPHID'); | return $data->getCommitDetail('authorPHID'); | ||||
} | } | ||||
public function getEffectiveAuthorPHID() { | |||||
if ($this->hasAuthorIdentity()) { | |||||
$identity = $this->getAuthorIdentity(); | |||||
if ($identity->hasEffectiveUser()) { | |||||
return $identity->getCurrentEffectiveUserPHID(); | |||||
} | |||||
} | |||||
$data = $this->getCommitData(); | |||||
return $data->getCommitDetail('authorPHID'); | |||||
} | |||||
public function getAuditStatusObject() { | public function getAuditStatusObject() { | ||||
$status = $this->getAuditStatus(); | $status = $this->getAuditStatus(); | ||||
return DiffusionCommitAuditStatus::newForStatus($status); | return DiffusionCommitAuditStatus::newForStatus($status); | ||||
} | } | ||||
public function isAuditStatusNoAudit() { | public function isAuditStatusNoAudit() { | ||||
return $this->getAuditStatusObject()->isNoAudit(); | return $this->getAuditStatusObject()->isNoAudit(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |