Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100782627
PhabricatorSpaceEditField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 2, 17:29
Size
941 B
Mime Type
text/x-php
Expires
Tue, Feb 4, 17:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24033427
Attached To
rPH Phabricator
PhabricatorSpaceEditField.php
View Options
<?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
();
}
}
Event Timeline
Log In to Comment