Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F449263
PhabricatorMySQLSearchHost.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
PhabricatorMySQLSearchHost.php
View Options
<?php
final
class
PhabricatorMySQLSearchHost
extends
PhabricatorSearchHost
{
public
function
setConfig
(
$config
)
{
$this
->
setRoles
(
idx
(
$config
,
'roles'
,
array
(
'read'
=>
true
,
'write'
=>
true
)));
return
$this
;
}
public
function
getDisplayName
()
{
return
'MySQL'
;
}
public
function
getStatusViewColumns
()
{
return
array
(
pht
(
'Protocol'
)
=>
'mysql'
,
pht
(
'Roles'
)
=>
implode
(
', '
,
array_keys
(
$this
->
getRoles
())),
);
}
public
function
getProtocol
()
{
return
'mysql'
;
}
public
function
getHealthRecord
()
{
if
(!
$this
->
healthRecord
)
{
$ref
=
PhabricatorDatabaseRef
::
getMasterDatabaseRefForApplication
(
'search'
);
$this
->
healthRecord
=
$ref
->
getHealthRecord
();
}
return
$this
->
healthRecord
;
}
public
function
getConnectionStatus
()
{
PhabricatorDatabaseRef
::
queryAll
();
$ref
=
PhabricatorDatabaseRef
::
getMasterDatabaseRefForApplication
(
'search'
);
$status
=
$ref
->
getConnectionStatus
();
return
$status
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 7:13 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66742
Default Alt Text
PhabricatorMySQLSearchHost.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment