Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76503812
PhabricatorTestController.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
Thu, Aug 8, 08:20
Size
955 B
Mime Type
text/x-php
Expires
Sat, Aug 10, 08:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19697983
Attached To
rPH Phabricator
PhabricatorTestController.php
View Options
<?php
final
class
PhabricatorTestController
extends
PhabricatorController
{
private
$config
=
array
();
public
function
setConfig
(
$key
,
$value
)
{
$this
->
config
[
$key
]
=
$value
;
return
$this
;
}
public
function
getConfig
(
$key
,
$default
)
{
return
idx
(
$this
->
config
,
$key
,
$default
);
}
public
function
shouldRequireLogin
()
{
return
$this
->
getConfig
(
'login'
,
parent
::
shouldRequireLogin
());
}
public
function
shouldRequireAdmin
()
{
return
$this
->
getConfig
(
'admin'
,
parent
::
shouldRequireAdmin
());
}
public
function
shouldAllowPublic
()
{
return
$this
->
getConfig
(
'public'
,
parent
::
shouldAllowPublic
());
}
public
function
shouldRequireEmailVerification
()
{
return
$this
->
getConfig
(
'email'
,
parent
::
shouldRequireEmailVerification
());
}
public
function
shouldRequireEnabledUser
()
{
return
$this
->
getConfig
(
'enabled'
,
parent
::
shouldRequireEnabledUser
());
}
public
function
processRequest
()
{}
}
Event Timeline
Log In to Comment