Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119850549
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
Sun, Jun 29, 19:56
Size
926 B
Mime Type
text/x-php
Expires
Tue, Jul 1, 19:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27072351
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
=
""
;
private
$isBuiltin
;
public
function
setIsBuiltin
(
$is_builtin
)
{
$this
->
isBuiltin
=
$is_builtin
;
return
$this
;
}
public
function
getIsBuiltin
()
{
return
$this
->
isBuiltin
;
}
/* -( 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