Changeset View
Changeset View
Standalone View
Standalone View
src/xsprintf/queryfx.php
<?php | <?php | ||||
function queryfx(AphrontDatabaseConnection $conn, $sql /* , ... */) { | function queryfx(AphrontDatabaseConnection $conn, $sql /* , ... */) { | ||||
$argv = func_get_args(); | $argv = func_get_args(); | ||||
$query = call_user_func_array('qsprintf', $argv); | $query = call_user_func_array('qsprintf', $argv); | ||||
$conn->setLastActiveEpoch(time()); | |||||
$conn->executeRawQuery($query); | $conn->executeRawQuery($query); | ||||
} | } | ||||
function queryfx_all(AphrontDatabaseConnection $conn, $sql /* , ... */) { | function queryfx_all(AphrontDatabaseConnection $conn, $sql /* , ... */) { | ||||
$argv = func_get_args(); | $argv = func_get_args(); | ||||
call_user_func_array('queryfx', $argv); | call_user_func_array('queryfx', $argv); | ||||
return $conn->selectAllResults(); | return $conn->selectAllResults(); | ||||
} | } | ||||
Show All 12 Lines |