本文整理汇总了PHP中QueryExecutor::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP QueryExecutor::execute方法的具体用法?PHP QueryExecutor::execute怎么用?PHP QueryExecutor::execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QueryExecutor
的用法示例。
在下文中一共展示了QueryExecutor::execute方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getListAllTeamDashboard
protected function getListAllTeamDashboard($sqlQuery)
{
$tab = QueryExecutor::execute($sqlQuery);
$ret = array();
for ($i = 0; $i < count($tab); $i++) {
$ret[$i] = $this->readRowAllTeamDashboard($tab[$i]);
}
return $ret;
}
示例2: getRowResponse
/**
* Get row
*
* @return ChallengeResponsesMySql
*/
protected function getRowResponse($sqlQuery)
{
$tab = QueryExecutor::execute($sqlQuery);
if (count($tab) == 0) {
return null;
}
return $this->readRowResponse($tab[0]);
}
示例3: getListUsers
protected function getListUsers($sqlQuery)
{
$tab = QueryExecutor::execute($sqlQuery);
$ret = array();
for ($i = 0; $i < count($tab); $i++) {
$ret[$i] = $this->readUserRow($tab[$i]);
}
return $ret;
}
示例4: getStudentClassScoreList
protected function getStudentClassScoreList($sqlQuery)
{
$tab = QueryExecutor::execute($sqlQuery);
$ret = array();
for ($i = 0; $i < count($tab); $i++) {
$ret[$i] = $this->readStudentClassScoreRow($tab[$i]);
}
return $ret;
}
示例5: getLastTemporadaOfSerie
public function getLastTemporadaOfSerie($idSerie)
{
$sql = 'SELECT MAX(temporada) temporada FROM vod WHERE id_serie = ?';
$sqlQuery = new SqlQuery($sql);
$sqlQuery->set($idSerie);
$tab = QueryExecutor::execute($sqlQuery);
if (count($tab) == 0) {
return null;
}
return $tab[0]['temporada'];
}
示例6: execute
/**
* Execute sql query
*/
protected function execute($sqlQuery)
{
return QueryExecutor::execute($sqlQuery);
}
示例7: getFields
function getFields($table)
{
$sql = 'DESC ' . $table;
return QueryExecutor::execute(new SqlQuery($sql));
}
示例8: getStudentScoreList
protected function getStudentScoreList($sqlQuery)
{
$tab = QueryExecutor::execute($sqlQuery);
return $tab;
}
示例9: getFields
function getFields($table)
{
$sql = 'DESC ' . $table;
$rettab = array();
$r = 0;
$origtab = QueryExecutor::execute(new SqlQuery($sql));
for ($i = 0; $i < count($origtab); $i++) {
$fieldname = $origtab[$i][0];
$row = $origtab[$i];
switch ($fieldname) {
case 'rid':
break;
case 'is_deleted':
break;
case 'create_epoch':
break;
case 'delete_epoch':
break;
default:
$rettab[$r++] = $row;
break;
}
}
return $rettab;
}