当前位置: 首页>>代码示例>>PHP>>正文


PHP QueryExecutor::execute方法代码示例

本文整理汇总了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;
 }
开发者ID:rajnishp,项目名称:teamroomV3,代码行数:9,代码来源:TeamsMySqlExtDAO.class.php

示例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]);
 }
开发者ID:rajnishp,项目名称:teamroomV3,代码行数:13,代码来源:ChallengeResponsesMySqlExtDAO.class.php

示例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;
 }
开发者ID:rajnishp,项目名称:teamroomV3,代码行数:9,代码来源:UserInfoMySqlExtDAO.class.php

示例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;
 }
开发者ID:seiran1944,项目名称:slate,代码行数:9,代码来源:MyStudentDAO.php

示例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'];
 }
开发者ID:roberto-pina,项目名称:ventana-educativa,代码行数:11,代码来源:VodMySqlExtDAO.class.php

示例6: execute

 /**
  * Execute sql query
  */
 protected function execute($sqlQuery)
 {
     return QueryExecutor::execute($sqlQuery);
 }
开发者ID:njr1466,项目名称:akipom,代码行数:7,代码来源:BannersuperiorMySqlDAO.class.php

示例7: getFields

function getFields($table)
{
    $sql = 'DESC ' . $table;
    return QueryExecutor::execute(new SqlQuery($sql));
}
开发者ID:renduples,项目名称:alibtob,代码行数:5,代码来源:generate.php

示例8: getStudentScoreList

 protected function getStudentScoreList($sqlQuery)
 {
     $tab = QueryExecutor::execute($sqlQuery);
     return $tab;
 }
开发者ID:seiran1944,项目名称:slate,代码行数:5,代码来源:StudentScoreDAO.php

示例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;
}
开发者ID:hkerem,项目名称:JournaledPHPDAO,代码行数:25,代码来源:generate.php


注:本文中的QueryExecutor::execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。