Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73906429
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
Thu, Jul 25, 05:01
Size
730 B
Mime Type
text/x-php
Expires
Sat, Jul 27, 05:01 (2 d)
Engine
blob
Format
Raw Data
Handle
19294664
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
=
""
;
/* -( 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