本文整理匯總了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);
}
}