Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91445327
PhabricatorSearchQuery.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
Mon, Nov 11, 04:50
Size
786 B
Mime Type
text/x-php
Expires
Wed, Nov 13, 04:50 (2 d)
Engine
blob
Format
Raw Data
Handle
22261058
Attached To
rPH Phabricator
PhabricatorSearchQuery.php
View Options
<?php
/**
* @group search
*/
final
class
PhabricatorSearchQuery
extends
PhabricatorSearchDAO
{
protected
$query
;
protected
$parameters
=
array
();
protected
$queryKey
;
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_SERIALIZATION
=>
array
(
'parameters'
=>
self
::
SERIALIZATION_JSON
,
),
)
+
parent
::
getConfiguration
();
}
public
function
setParameter
(
$parameter
,
$value
)
{
$this
->
parameters
[
$parameter
]
=
$value
;
return
$this
;
}
public
function
getParameter
(
$parameter
,
$default
=
null
)
{
return
idx
(
$this
->
parameters
,
$parameter
,
$default
);
}
public
function
save
()
{
if
(!
$this
->
getQueryKey
())
{
$this
->
setQueryKey
(
Filesystem
::
readRandomCharacters
(
12
));
}
return
parent
::
save
();
}
}
Event Timeline
Log In to Comment