Differential D14478 Diff 35066 src/applications/legalpad/policyrule/PhabricatorLegalpadSignaturePolicyRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/policyrule/PhabricatorLegalpadSignaturePolicyRule.php
- This file was moved from src/applications/policy/rule/PhabricatorLegalpadSignaturePolicyRule.php.
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | public function getValueForStorage($value) { | ||||
return array_values($value); | return array_values($value); | ||||
} | } | ||||
public function getValueForDisplay(PhabricatorUser $viewer, $value) { | public function getValueForDisplay(PhabricatorUser $viewer, $value) { | ||||
$handles = id(new PhabricatorHandleQuery()) | $handles = id(new PhabricatorHandleQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs($value) | ->withPHIDs($value) | ||||
->execute(); | ->execute(); | ||||
return mpull($handles, 'getFullName', 'getPHID'); | return mpull($handles, 'getFullName', 'getPHID'); | ||||
} | } | ||||
public function ruleHasEffect($value) { | public function ruleHasEffect($value) { | ||||
return (bool)$value; | return (bool)$value; | ||||
} | } | ||||
} | } |