示例#1
0
 /**
  * @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
0
 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
0
 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
0
 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
0
 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
0
文件: BaseMenu.php 项目: kotow/work
 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);
     }
 }
 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
0
 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);
     }
 }
 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
0
 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
0
 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
0
 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
0
 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
0
 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
0
 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);
     }
 }
示例#16
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->total_col_item = $rs->getString($startcol + 1);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 2;
     } catch (Exception $e) {
         throw new PropelException("Error populating VColItemPerCatalog object", $e);
     }
 }
示例#17
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->created_at = $rs->getTimestamp($startcol + 2, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfTicketStatus object", $e);
     }
 }
示例#18
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->question_id = $rs->getInt($startcol + 0);
         $this->word = $rs->getString($startcol + 1);
         $this->weight = $rs->getInt($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating SearchIndex object", $e);
     }
 }
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->organization_id = $rs->getInt($startcol + 1);
         $this->keyword = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating OrganizationResearcherKeyword object", $e);
     }
 }
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->collaboration_id = $rs->getInt($startcol + 1);
         $this->outcome_type = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating CollaborationOutcomeType object", $e);
     }
 }
示例#21
0
 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);
     }
 }
示例#22
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->class_agenda_id = $rs->getInt($startcol + 1);
         $this->file = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating ClassAgendaFile object", $e);
     }
 }
示例#23
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->col_location_id = $rs->getInt($startcol + 0);
         $this->cat_category_id = $rs->getInt($startcol + 1);
         $this->total_catalog = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating VTotalCatalog object", $e);
     }
 }
示例#24
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->name = $rs->getString($startcol + 0);
         $this->academic_calendar_id = $rs->getInt($startcol + 1);
         $this->department_id = $rs->getInt($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating VLocationAccal object", $e);
     }
 }
示例#25
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->subject_grading_id = $rs->getInt($startcol + 1);
         $this->kkm = $rs->getFloat($startcol + 2);
         $this->detail = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating SubjectCompetency object", $e);
     }
 }
示例#26
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->cat_category_id = $rs->getInt($startcol + 0);
         $this->published_year = $rs->getFloat($startcol + 1);
         $this->total_col_item = $rs->getString($startcol + 2);
         $this->col_location_id = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating VMaterialCollection object", $e);
     }
 }
示例#27
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->wiki_id = $rs->getInt($startcol + 1);
         $this->name = $rs->getString($startcol + 2);
         $this->latest_revision = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating nahoWikiPage object", $e);
     }
 }
示例#28
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->poll_id = $rs->getInt($startcol + 1);
         $this->name = $rs->getString($startcol + 2);
         $this->votes = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfPollAnswer object", $e);
     }
 }
示例#29
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->badge_id = $rs->getInt($startcol + 2);
         $this->badgeflag = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating Userbadge object", $e);
     }
 }
示例#30
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->min_value = $rs->getFloat($startcol + 2);
         $this->max_value = $rs->getFloat($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating GraduationGrading object", $e);
     }
 }