Page MenuHomePhorge

PhabricatorSpaceEditField.php
No OneTemporary

Size
940 B
Referenced Files
None
Subscribers
None

PhabricatorSpaceEditField.php

<?php
final class PhabricatorSpaceEditField
extends PhabricatorEditField {
private $policyField;
public function setPolicyField(PhabricatorPolicyEditField $policy_field) {
$this->policyField = $policy_field;
return $this;
}
public function getPolicyField() {
return $this->policyField;
}
protected function newControl() {
// NOTE: This field doesn't do anything on its own, it just serves as a
// companion to the associated View Policy field.
return null;
}
protected function newHTTPParameterType() {
return new AphrontPHIDHTTPParameterType();
}
protected function newConduitParameterType() {
return new ConduitPHIDParameterType();
}
public function shouldReadValueFromRequest() {
return $this->getPolicyField()->shouldReadValueFromRequest();
}
public function shouldReadValueFromSubmit() {
return $this->getPolicyField()->shouldReadValueFromSubmit();
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 11:31 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112837
Default Alt Text
PhabricatorSpaceEditField.php (940 B)

Event Timeline