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


PHP ResultSet::getString方法代码示例

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


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

示例1: testSetString

 /**
  * @covers ResultSet::setString
  */
 public function testSetString()
 {
     $myKey = 'role';
     $myValue = 'Tester';
     $this->result->setString($myKey, $myValue);
     $actual = $this->result->getString($myKey);
     $this->assertSame($actual, $myValue);
 }
开发者ID:fruition-sciences,项目名称:phpfw,代码行数:11,代码来源:ResultSetTest.php

示例2: hydrate

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

示例3: hydrate

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

示例4: hydrate

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

示例5: hydrate

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

示例6: hydrate

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

示例7: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->name = $rs->getString($startcol + 0);
         $this->description = $rs->getString($startcol + 1);
         $this->id = $rs->getInt($startcol + 2);
         $this->culture = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating ProductCategoryI18n object", $e);
     }
 }
开发者ID:net7,项目名称:Talia-CMS,代码行数:14,代码来源:BaseProductCategoryI18n.php

示例8: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->ip = $rs->getString($startcol + 0);
         $this->nameserver = $rs->getString($startcol + 1);
         $this->account = $rs->getString($startcol + 2);
         $this->id = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating SuperMaster object", $e);
     }
 }
开发者ID:royalterra,项目名称:pdns-gui,代码行数:14,代码来源:BaseSuperMaster.php

示例9: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->resource_version_id = $rs->getInt($startcol + 1);
         $this->attribute_name = $rs->getString($startcol + 2);
         $this->attribute_value = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating ResourceAttributeVersion object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:14,代码来源:BaseResourceAttributeVersion.php

示例10: hydrate

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

示例11: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->recommendable_model = $rs->getString($startcol + 1);
         $this->recommendable_id = $rs->getString($startcol + 2);
         $this->score = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfRecommendation object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:14,代码来源:BasesfRecommendation.php

示例12: hydrate

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

示例13: hydrate

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

示例14: hydrate

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

示例15: hydrate

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


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