Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101562810
PhabricatorConduitLogQuery.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
Tue, Feb 11, 14:43
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 13, 14:43 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24185882
Attached To
rPH Phabricator
PhabricatorConduitLogQuery.php
View Options
<?php
final
class
PhabricatorConduitLogQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
private
$methods
;
public
function
withMethods
(
array
$methods
)
{
$this
->
methods
=
$methods
;
return
$this
;
}
public
function
loadPage
()
{
$table
=
new
PhabricatorConduitMethodCallLog
();
$conn_r
=
$table
->
establishConnection
(
'r'
);
$data
=
queryfx_all
(
$conn_r
,
'SELECT * FROM %T %Q %Q %Q'
,
$table
->
getTableName
(),
$this
->
buildWhereClause
(
$conn_r
),
$this
->
buildOrderClause
(
$conn_r
),
$this
->
buildLimitClause
(
$conn_r
));
return
$table
->
loadAllFromArray
(
$data
);;
}
private
function
buildWhereClause
(
AphrontDatabaseConnection
$conn_r
)
{
$where
=
array
();
if
(
$this
->
methods
)
{
$where
[]
=
qsprintf
(
$conn_r
,
'method IN (%Ls)'
,
$this
->
methods
);
}
$where
[]
=
$this
->
buildPagingClause
(
$conn_r
);
return
$this
->
formatWhereClause
(
$where
);
}
public
function
getQueryApplicationClass
()
{
return
'PhabricatorConduitApplication'
;
}
}
Event Timeline
Log In to Comment