Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/rule/PhabricatorUsersPolicyRule.php
Show All 14 Lines | public function applyRule(PhabricatorUser $viewer, $value) { | ||||
return false; | return false; | ||||
} | } | ||||
public function getValueControlType() { | public function getValueControlType() { | ||||
return self::CONTROL_TYPE_TOKENIZER; | return self::CONTROL_TYPE_TOKENIZER; | ||||
} | } | ||||
public function getValueControlTemplate() { | public function getValueControlTemplate() { | ||||
$users_datasource = new PhabricatorPeopleDatasource(); | return $this->getDatasourceTemplate(new PhabricatorPeopleDatasource()); | ||||
return array( | |||||
'markup' => new AphrontTokenizerTemplateView(), | |||||
'uri' => $users_datasource->getDatasourceURI(), | |||||
'placeholder' => $users_datasource->getPlaceholderText(), | |||||
); | |||||
} | } | ||||
public function getRuleOrder() { | public function getRuleOrder() { | ||||
return 100; | return 100; | ||||
} | } | ||||
public function getValueForStorage($value) { | public function getValueForStorage($value) { | ||||
PhutilTypeSpec::newFromString('list<string>')->check($value); | PhutilTypeSpec::newFromString('list<string>')->check($value); | ||||
Show All 21 Lines |