Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F959803
PhabricatorXHProfSample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorXHProfSample.php
View Options
<?php
final
class
PhabricatorXHProfSample
extends
PhabricatorXHProfDAO
implements
PhabricatorPolicyInterface
{
protected
$filePHID
;
protected
$usTotal
;
protected
$sampleRate
;
protected
$hostname
;
protected
$requestPath
;
protected
$controller
;
protected
$userPHID
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'sampleRate'
=>
'uint32'
,
'usTotal'
=>
'uint64'
,
'hostname'
=>
'text255?'
,
'requestPath'
=>
'text255?'
,
'controller'
=>
'text255?'
,
'userPHID'
=>
'phid?'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'filePHID'
=>
array
(
'columns'
=>
array
(
'filePHID'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
switch
(
$capability
)
{
case
PhabricatorPolicyCapability
::
CAN_VIEW
:
return
PhabricatorPolicies
::
getMostOpenPolicy
();
}
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 10:30 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227480
Default Alt Text
PhabricatorXHProfSample.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment