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