本文整理汇总了PHP中ResultSet::getDate方法的典型用法代码示例。如果您正苦于以下问题:PHP ResultSet::getDate方法的具体用法?PHP ResultSet::getDate怎么用?PHP ResultSet::getDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ResultSet
的用法示例。
在下文中一共展示了ResultSet::getDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSetDate
/**
* @covers ResultSet::setDate
*/
public function testSetDate()
{
$dateKey = 'aDate';
$date = '2015-04-23 15:16:17';
$this->result->setDate($dateKey, $date);
$actual = $this->result->getDate($dateKey);
$this->assertNotNull($actual);
}
示例2: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->uuid = $rs->getString($startcol + 1);
$this->created_by = $rs->getInt($startcol + 2);
$this->owner_id = $rs->getInt($startcol + 3);
$this->department_id = $rs->getInt($startcol + 4);
$this->campus_id = $rs->getInt($startcol + 5);
$this->title = $rs->getString($startcol + 6);
$this->picture = $rs->getString($startcol + 7);
$this->slug = $rs->getString($startcol + 8);
$this->description = $rs->getString($startcol + 9);
$this->notes = $rs->getString($startcol + 10);
$this->keywords = $rs->getString($startcol + 11);
$this->begin = $rs->getDate($startcol + 12, null);
$this->finish = $rs->getDate($startcol + 13, null);
$this->budget = $rs->getInt($startcol + 14);
$this->status = $rs->getInt($startcol + 15);
$this->applications = $rs->getInt($startcol + 16);
$this->season = $rs->getInt($startcol + 17);
$this->year = $rs->getDate($startcol + 18, null);
$this->scale = $rs->getInt($startcol + 19);
$this->commitment = $rs->getInt($startcol + 20);
$this->goals = $rs->getInt($startcol + 21);
$this->goals_complete = $rs->getInt($startcol + 22);
$this->hours_weekly = $rs->getInt($startcol + 23);
$this->hours_total = $rs->getInt($startcol + 24);
$this->published = $rs->getBoolean($startcol + 25);
$this->flagged_aup = $rs->getBoolean($startcol + 26);
$this->flagged_help = $rs->getBoolean($startcol + 27);
$this->main_form = $rs->getString($startcol + 28);
$this->is_approved = $rs->getBoolean($startcol + 29);
$this->hits = $rs->getInt($startcol + 30);
$this->version = $rs->getInt($startcol + 31);
$this->updated_at = $rs->getTimestamp($startcol + 32, null);
$this->deleted_at = $rs->getTimestamp($startcol + 33, null);
$this->created_at = $rs->getTimestamp($startcol + 34, null);
$this->resetModified();
$this->setNew(false);
return $startcol + 35;
} catch (Exception $e) {
throw new PropelException("Error populating Project object", $e);
}
}
示例3: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->employee_id = $rs->getInt($startcol + 1);
$this->academic_calendar_id = $rs->getInt($startcol + 2);
$this->status = $rs->getInt($startcol + 3);
$this->start = $rs->getTimestamp($startcol + 4, null);
$this->date_in = $rs->getDate($startcol + 5, null);
$this->datang = $rs->getTime($startcol + 6, null);
$this->resetModified();
$this->setNew(false);
return $startcol + 7;
} catch (Exception $e) {
throw new PropelException("Error populating EmployeeAbsenceDev object", $e);
}
}
示例4: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->employee_id = $rs->getInt($startcol + 1);
$this->department_id = $rs->getInt($startcol + 2);
$this->academic_calendar_id = $rs->getInt($startcol + 3);
$this->employee_level_id = $rs->getInt($startcol + 4);
$this->employee_division_id = $rs->getInt($startcol + 5);
$this->leave_type_id = $rs->getInt($startcol + 6);
$this->code = $rs->getString($startcol + 7);
$this->leave_length = $rs->getInt($startcol + 8);
$this->start = $rs->getDate($startcol + 9, null);
$this->end = $rs->getDate($startcol + 10, null);
$this->detail = $rs->getString($startcol + 11);
$this->address = $rs->getString($startcol + 12);
$this->status = $rs->getInt($startcol + 13);
$this->resetModified();
$this->setNew(false);
return $startcol + 14;
} catch (Exception $e) {
throw new PropelException("Error populating EmployeeLeave object", $e);
}
}
示例5: 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->production_history_id = $rs->getInt($startcol + 0);
$this->user_id = $rs->getInt($startcol + 1);
$this->production_id = $rs->getInt($startcol + 2);
$this->action = $rs->getString($startcol + 3);
$this->date = $rs->getDate($startcol + 4, null);
$this->value = $rs->getString($startcol + 5);
$this->user_name = $rs->getString($startcol + 6);
$this->type = $rs->getString($startcol + 7);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 8;
// 8 = ProductionHistoryPeer::NUM_COLUMNS - ProductionHistoryPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating ProductionHistory object", $e);
}
}
示例6: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->student_id = $rs->getInt($startcol + 1);
$this->academic_calendar_id = $rs->getInt($startcol + 2);
$this->status = $rs->getInt($startcol + 3);
$this->start = $rs->getDate($startcol + 4, null);
$this->end = $rs->getDate($startcol + 5, null);
$this->holiday = $rs->getInt($startcol + 6);
$this->total_days = $rs->getInt($startcol + 7);
$this->class_group_id = $rs->getInt($startcol + 8);
$this->detail = $rs->getString($startcol + 9);
$this->resetModified();
$this->setNew(false);
return $startcol + 10;
} catch (Exception $e) {
throw new PropelException("Error populating VLeave object", $e);
}
}
示例7: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->student_id = $rs->getInt($startcol + 1);
$this->academic_calendar_id = $rs->getInt($startcol + 2);
$this->class_group_id = $rs->getInt($startcol + 3);
$this->code = $rs->getString($startcol + 4);
$this->time_in = $rs->getDate($startcol + 5, null);
$this->time_out = $rs->getDate($startcol + 6, null);
$this->resetModified();
$this->setNew(false);
return $startcol + 7;
} catch (Exception $e) {
throw new PropelException("Error populating Absence object", $e);
}
}
示例8: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->short_name = $rs->getString($startcol + 1);
$this->pob = $rs->getString($startcol + 2);
$this->dob = $rs->getDate($startcol + 3, null);
$this->sex = $rs->getString($startcol + 4);
$this->address = $rs->getString($startcol + 5);
$this->region_id = $rs->getInt($startcol + 6);
$this->post_code = $rs->getString($startcol + 7);
$this->phone = $rs->getString($startcol + 8);
$this->cellphone = $rs->getString($startcol + 9);
$this->religion_id = $rs->getInt($startcol + 10);
$this->school_of_origin = $rs->getString($startcol + 11);
$this->graduation_year = $rs->getString($startcol + 12);
$this->graduation_grade = $rs->getString($startcol + 13);
$this->company = $rs->getString($startcol + 14);
$this->job_title = $rs->getString($startcol + 15);
$this->college_of_origin = $rs->getString($startcol + 16);
$this->department_of_origin = $rs->getString($startcol + 17);
$this->reg_year = $rs->getString($startcol + 18);
$this->parent_name = $rs->getString($startcol + 19);
$this->nationality = $rs->getString($startcol + 20);
$this->child_number = $rs->getInt($startcol + 21);
$this->siblings = $rs->getInt($startcol + 22);
$this->blood_siblings = $rs->getInt($startcol + 23);
$this->step_siblings = $rs->getInt($startcol + 24);
$this->adopt_siblings = $rs->getInt($startcol + 25);
$this->native_language = $rs->getString($startcol + 26);
$this->residence_status = $rs->getInt($startcol + 27);
$this->home_distance = $rs->getInt($startcol + 28);
$this->orphanage_status = $rs->getInt($startcol + 29);
$this->transport = $rs->getInt($startcol + 30);
$this->father = $rs->getString($startcol + 31);
$this->mother = $rs->getString($startcol + 32);
$this->father_job = $rs->getInt($startcol + 33);
$this->mother_job = $rs->getInt($startcol + 34);
$this->detail_father_job = $rs->getInt($startcol + 35);
$this->detail_mother_job = $rs->getInt($startcol + 36);
$this->reg_note = $rs->getString($startcol + 37);
$this->academic_calendar_id = $rs->getInt($startcol + 38);
$this->age_year = $rs->getInt($startcol + 39);
$this->age_month = $rs->getInt($startcol + 40);
$this->residence_detail = $rs->getString($startcol + 41);
$this->residence_else = $rs->getString($startcol + 42);
$this->illness = $rs->getString($startcol + 43);
$this->illness_note = $rs->getString($startcol + 44);
$this->need = $rs->getString($startcol + 45);
$this->need_note = $rs->getString($startcol + 46);
$this->blood_type = $rs->getString($startcol + 47);
$this->tall = $rs->getString($startcol + 48);
$this->weight = $rs->getString($startcol + 49);
$this->school_of_origin_address = $rs->getString($startcol + 50);
$this->country_id = $rs->getInt($startcol + 51);
$this->resetModified();
$this->setNew(false);
return $startcol + 52;
} catch (Exception $e) {
throw new PropelException("Error populating TestApplicantDetail object", $e);
}
}
示例9: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->date = $rs->getDate($startcol + 1, null);
$this->total_absence = $rs->getInt($startcol + 2);
$this->academic_calendar_id = $rs->getInt($startcol + 3);
$this->resetModified();
$this->setNew(false);
return $startcol + 4;
} catch (Exception $e) {
throw new PropelException("Error populating VEmployeeAbsenceDev object", $e);
}
}
示例10: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->student_id = $rs->getInt($startcol + 1);
$this->academic_calendar_id = $rs->getInt($startcol + 2);
$this->class_group_id = $rs->getInt($startcol + 3);
$this->course_schedule_id = $rs->getInt($startcol + 4);
$this->subject_curr_id = $rs->getInt($startcol + 5);
$this->employee_id = $rs->getInt($startcol + 6);
$this->status = $rs->getInt($startcol + 7);
$this->detail = $rs->getString($startcol + 8);
$this->code = $rs->getString($startcol + 9);
$this->time = $rs->getDate($startcol + 10, null);
$this->resetModified();
$this->setNew(false);
return $startcol + 11;
} catch (Exception $e) {
throw new PropelException("Error populating AbsenceCourse object", $e);
}
}
示例11: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->uuid = $rs->getString($startcol + 1);
$this->created_by = $rs->getInt($startcol + 2);
$this->owner_id = $rs->getInt($startcol + 3);
$this->department_id = $rs->getInt($startcol + 4);
$this->campus_id = $rs->getInt($startcol + 5);
$this->title = $rs->getString($startcol + 6);
$this->picture = $rs->getString($startcol + 7);
$this->slug = $rs->getString($startcol + 8);
$this->description = $rs->getString($startcol + 9);
$this->notes = $rs->getString($startcol + 10);
$this->community_benefits = $rs->getString($startcol + 11);
$this->student_reasons = $rs->getString($startcol + 12);
$this->keywords = $rs->getString($startcol + 13);
$this->begin = $rs->getDate($startcol + 14, null);
$this->finish = $rs->getDate($startcol + 15, null);
$this->budget = $rs->getInt($startcol + 16);
$this->status = $rs->getInt($startcol + 17);
$this->applications = $rs->getInt($startcol + 18);
$this->season = $rs->getInt($startcol + 19);
$this->length = $rs->getInt($startcol + 20);
$this->preferred_term_length = $rs->getInt($startcol + 21);
$this->year = $rs->getDate($startcol + 22, null);
$this->scale = $rs->getInt($startcol + 23);
$this->commitment = $rs->getInt($startcol + 24);
$this->goals = $rs->getInt($startcol + 25);
$this->goals_complete = $rs->getInt($startcol + 26);
$this->hours_weekly = $rs->getInt($startcol + 27);
$this->hours_total = $rs->getInt($startcol + 28);
$this->published = $rs->getBoolean($startcol + 29);
$this->flagged_aup = $rs->getBoolean($startcol + 30);
$this->flagged_help = $rs->getBoolean($startcol + 31);
$this->page1_complete = $rs->getBoolean($startcol + 32);
$this->page2_complete = $rs->getBoolean($startcol + 33);
$this->page3_complete = $rs->getBoolean($startcol + 34);
$this->page4_complete = $rs->getBoolean($startcol + 35);
$this->liability = $rs->getBoolean($startcol + 36);
$this->liability_details = $rs->getString($startcol + 37);
$this->profit = $rs->getBoolean($startcol + 38);
$this->profit_details = $rs->getString($startcol + 39);
$this->is_approved = $rs->getBoolean($startcol + 40);
$this->points = $rs->getInt($startcol + 41);
$this->approved_by = $rs->getString($startcol + 42);
$this->hits = $rs->getInt($startcol + 43);
$this->version = $rs->getInt($startcol + 44);
$this->updated_at = $rs->getTimestamp($startcol + 45, null);
$this->deleted_at = $rs->getTimestamp($startcol + 46, null);
$this->created_at = $rs->getTimestamp($startcol + 47, null);
$this->resetModified();
$this->setNew(false);
return $startcol + 48;
} catch (Exception $e) {
throw new PropelException("Error populating ProjectApplication object", $e);
}
}
示例12: 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->trn_category = $rs->getString($startcol + 0);
$this->trn_id = $rs->getString($startcol + 1);
$this->trn_lang = $rs->getString($startcol + 2);
$this->trn_value = $rs->getString($startcol + 3);
$this->trn_update_date = $rs->getDate($startcol + 4, null);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 5;
// 5 = TranslationPeer::NUM_COLUMNS - TranslationPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating Translation object", $e);
}
}
示例13: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->student_id = $rs->getInt($startcol + 0);
$this->time = $rs->getDate($startcol + 1, null);
$this->code = $rs->getString($startcol + 2);
$this->resetModified();
$this->setNew(false);
return $startcol + 3;
} catch (Exception $e) {
throw new PropelException("Error populating VAbsenceStudent object", $e);
}
}
示例14: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->user_id = $rs->getInt($startcol + 1);
$this->image = $rs->getString($startcol + 2);
$this->imageflag = $rs->getString($startcol + 3);
$this->salutation = $rs->getString($startcol + 4);
$this->firstname = $rs->getString($startcol + 5);
$this->firstnameflag = $rs->getString($startcol + 6);
$this->middlename = $rs->getString($startcol + 7);
$this->middlenameflag = $rs->getString($startcol + 8);
$this->lastname = $rs->getString($startcol + 9);
$this->lastnameflag = $rs->getString($startcol + 10);
$this->maidenname = $rs->getString($startcol + 11);
$this->maidennameflag = $rs->getString($startcol + 12);
$this->itbhuname = $rs->getString($startcol + 13);
$this->itbhunameflag = $rs->getString($startcol + 14);
$this->gender = $rs->getString($startcol + 15);
$this->genderflag = $rs->getString($startcol + 16);
$this->dob = $rs->getDate($startcol + 17, null);
$this->dobflag = $rs->getString($startcol + 18);
$this->maritalstatus = $rs->getString($startcol + 19);
$this->maritalstatusflag = $rs->getString($startcol + 20);
$this->email = $rs->getString($startcol + 21);
$this->emailflag = $rs->getString($startcol + 22);
$this->website = $rs->getString($startcol + 23);
$this->websiteflag = $rs->getString($startcol + 24);
$this->linkedin = $rs->getString($startcol + 25);
$this->linkedinflag = $rs->getString($startcol + 26);
$this->hobbies = $rs->getString($startcol + 27);
$this->hobbiesflag = $rs->getString($startcol + 28);
$this->interest = $rs->getString($startcol + 29);
$this->resetModified();
$this->setNew(false);
return $startcol + 30;
} catch (Exception $e) {
throw new PropelException("Error populating Personal object", $e);
}
}
示例15: hydrate
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->id = $rs->getInt($startcol + 0);
$this->academic_calendar_id = $rs->getInt($startcol + 1);
$this->class_group_id = $rs->getInt($startcol + 2);
$this->datetime = $rs->getDate($startcol + 3, null);
$this->status = $rs->getInt($startcol + 4);
$this->resetModified();
$this->setNew(false);
return $startcol + 5;
} catch (Exception $e) {
throw new PropelException("Error populating AttendanceClass object", $e);
}
}