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


PHP ResultSet类代码示例

本文整理汇总了PHP中ResultSet的典型用法代码示例。如果您正苦于以下问题:PHP ResultSet类的具体用法?PHP ResultSet怎么用?PHP ResultSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ResultSet类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->day = $rs->getInt($startcol + 0);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 1;
     } catch (Exception $e) {
         throw new PropelException("Error populating VCourseDay object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:11,代码来源:BaseVCourseDay.php

示例2: getResultsByType

 /**
  * Get all the results matching one of the given types
  * @param array ...$types
  * @return ItemPosition[]
  */
 public function getResultsByType($types)
 {
     $types = func_get_args();
     $items = new ResultSet();
     foreach ($this->items as $item) {
         if (call_user_func_array([$item, 'is'], $types)) {
             $items->addItem($item);
         }
     }
     return $items;
 }
开发者ID:serp-spider,项目名称:core,代码行数:16,代码来源:ResultSet.php

示例3: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->coolness = $rs->getFloat($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating FakeForum object", $e);
     }
 }
开发者ID:rande,项目名称:sfSolrPlugin,代码行数:12,代码来源:BaseFakeForum.php

示例4: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating Audience object", $e);
     }
 }
开发者ID:soon0009,项目名称:EMS,代码行数:12,代码来源:BaseAudience.php

示例5: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->test_schedule_id = $rs->getInt($startcol + 0);
         $this->location_id = $rs->getInt($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating VTestApplSched2 object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:12,代码来源:BaseVTestApplSched2.php

示例6: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->total_col_item = $rs->getString($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating VColItemPerCatalog object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:12,代码来源:BaseVColItemPerCatalog.php

示例7: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->department_id = $rs->getInt($startcol + 0);
         $this->total_collection = $rs->getString($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating VTotalEksemplar object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:12,代码来源:BaseVTotalEksemplar.php

示例8: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->user_id = $rs->getInt($startcol + 0);
         $this->permission_id = $rs->getInt($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfGuardUserPermission object", $e);
     }
 }
开发者ID:net7,项目名称:Talia-CMS,代码行数:12,代码来源:BasesfGuardUserPermission.php

示例9: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->etime_id = $rs->getInt($startcol + 0);
         $this->tag_id = $rs->getInt($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating EtimeTag object", $e);
     }
 }
开发者ID:soon0009,项目名称:EMS,代码行数:12,代码来源:BaseEtimeTag.php

示例10: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->col_location_id = $rs->getInt($startcol + 0);
         $this->cat_category_id = $rs->getInt($startcol + 1);
         $this->total_catalog = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating VTotalCatalog object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:13,代码来源:BaseVTotalCatalog.php

示例11: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->peppage_id = $rs->getInt($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating Pepuser object", $e);
     }
 }
开发者ID:Ayaan123,项目名称:alumnisangam,代码行数:13,代码来源:BasePepuser.php

示例12: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->question_id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->created_at = $rs->getTimestamp($startcol + 2, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating Interest object", $e);
     }
 }
开发者ID:arrisray,项目名称:askeet,代码行数:13,代码来源:BaseInterest.php

示例13: getuserRankByExp

 public function getuserRankByExp($xp_point)
 {
     $dbAdapter = $this->getServiceLocator()->get('Zend\\Db\\Adapter\\Adapter');
     $sql = new Sql($dbAdapter);
     $select = $sql->select('player_rank_system');
     $select->where->lessThan('min_exp', $xp_point);
     $select->where->greaterThan('max_exp', $xp_point);
     $statement = $sql->prepareStatementForSqlObject($select);
     $rowset = $statement->execute();
     $resultSet = new ResultSet();
     $resultSet->initialize($rowset);
     return $resultSet;
 }
开发者ID:bladehr8,项目名称:bowhunter2015,代码行数:13,代码来源:PageController.php

示例14: getServiceConfig

 public function getServiceConfig()
 {
     return array('factories' => array('Senjata\\Model\\SenjataTable' => function ($sm) {
         $tableGateway = $sm->get('PrajuritTableGateway');
         $table = new SenjataTable($tableGateway);
         return $table;
     }, 'SenjataTableGateway' => function ($sm) {
         $dbAdapter = $sm->get('Zend\\Db\\Adapter\\Adapter');
         $resultSetPrototype = new ResultSet();
         $resultSetPrototype->setArrayObjectPrototype(new Prajurit());
         return new TableGateway('senjata', $dbAdapter, null, $resultSetPrototype);
     }));
 }
开发者ID:ibnuda,项目名称:SayaSakit,代码行数:13,代码来源:Module.php

示例15: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->student_id = $rs->getInt($startcol + 0);
         $this->time = $rs->getDate($startcol + 1, null);
         $this->code = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating VAbsenceStudent object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:13,代码来源:BaseVAbsenceStudent.php


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