Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116544050
PhabricatorPolicyRule.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
Sat, Jun 7, 12:09
Size
812 B
Mime Type
text/x-php
Expires
Mon, Jun 9, 12:09 (2 d)
Engine
blob
Format
Raw Data
Handle
26643955
Attached To
rPH Phabricator
PhabricatorPolicyRule.php
View Options
<?php
abstract
class
PhabricatorPolicyRule
{
const
CONTROL_TYPE_TEXT
=
'text'
;
const
CONTROL_TYPE_SELECT
=
'select'
;
const
CONTROL_TYPE_TOKENIZER
=
'tokenizer'
;
const
CONTROL_TYPE_NONE
=
'none'
;
abstract
public
function
getRuleDescription
();
abstract
public
function
applyRule
(
PhabricatorUser
$viewer
,
$value
);
public
function
willApplyRules
(
PhabricatorUser
$viewer
,
array
$values
)
{
return
;
}
public
function
getValueControlType
()
{
return
self
::
CONTROL_TYPE_TEXT
;
}
public
function
getValueControlTemplate
()
{
return
null
;
}
public
function
getRuleOrder
()
{
return
500
;
}
public
function
getValueForStorage
(
$value
)
{
return
$value
;
}
public
function
getValueForDisplay
(
PhabricatorUser
$viewer
,
$value
)
{
return
$value
;
}
}
Event Timeline
Log In to Comment