Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F431265
PhabricatorConduitLogQuery.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
PhabricatorConduitLogQuery.php
View Options
<?php
final
class
PhabricatorConduitLogQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
private
$methods
;
public
function
withMethods
(
array
$methods
)
{
$this
->
methods
=
$methods
;
return
$this
;
}
protected
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
);;
}
protected
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'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 12:13 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60738
Default Alt Text
PhabricatorConduitLogQuery.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment