Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/codex/PhabricatorPolicyCodex.php
Show All 34 Lines | abstract class PhabricatorPolicyCodex | ||||
public function getDefaultPolicy() { | public function getDefaultPolicy() { | ||||
return PhabricatorPolicyQuery::getDefaultPolicyForObject( | return PhabricatorPolicyQuery::getDefaultPolicyForObject( | ||||
$this->viewer, | $this->viewer, | ||||
$this->object, | $this->object, | ||||
$this->capability); | $this->capability); | ||||
} | } | ||||
public function compareToDefaultPolicy(PhabricatorPolicy $policy) { | |||||
return null; | |||||
} | |||||
final protected function newRule() { | final protected function newRule() { | ||||
return new PhabricatorPolicyCodexRuleDescription(); | return new PhabricatorPolicyCodexRuleDescription(); | ||||
} | } | ||||
final public function setViewer(PhabricatorUser $viewer) { | final public function setViewer(PhabricatorUser $viewer) { | ||||
$this->viewer = $viewer; | $this->viewer = $viewer; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |