本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}