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


PHP ResultSet::getBlob方法代码示例

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


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

示例1: hydrate

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

示例2: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->job = $rs->getInt($startcol + 1);
         $this->text = $rs->getBlob($startcol + 2);
         $this->type = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 4;
         // 4 = ImportErrorPeer::NUM_COLUMNS - ImportErrorPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating ImportError object", $e);
     }
 }
开发者ID:Evolix,项目名称:lilac,代码行数:29,代码来源:BaseImportError.php

示例3: hydrate

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

示例4: hydrate

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

示例5: hydrate

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


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