Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106098011
PhabricatorNamedQuery.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, Mar 22, 09:25
Size
797 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 09:25 (2 d)
Engine
blob
Format
Raw Data
Handle
25113302
Attached To
rPH Phabricator
PhabricatorNamedQuery.php
View Options
<?php
/**
* @group search
*/
final
class
PhabricatorNamedQuery
extends
PhabricatorSearchDAO
implements
PhabricatorPolicyInterface
{
protected
$queryKey
;
protected
$queryName
;
protected
$userPHID
;
protected
$engineClassName
;
protected
$isBuiltin
=
0
;
protected
$isDisabled
=
0
;
protected
$sequence
=
0
;
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
PhabricatorPolicies
::
POLICY_NOONE
;
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
if
(
$viewer
->
getPHID
()
==
$this
->
userPHID
)
{
return
true
;
}
return
false
;
}
}
Event Timeline
Log In to Comment