public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->day = $rs->getInt($startcol + 0); $this->resetModified(); $this->setNew(false); return $startcol + 1; } catch (Exception $e) { throw new PropelException("Error populating VCourseDay object", $e); } }
/** * Get all the results matching one of the given types * @param array ...$types * @return ItemPosition[] */ public function getResultsByType($types) { $types = func_get_args(); $items = new ResultSet(); foreach ($this->items as $item) { if (call_user_func_array([$item, 'is'], $types)) { $items->addItem($item); } } return $items; }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->coolness = $rs->getFloat($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating FakeForum object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->name = $rs->getString($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating Audience object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->test_schedule_id = $rs->getInt($startcol + 0); $this->location_id = $rs->getInt($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating VTestApplSched2 object", $e); } }
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); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->department_id = $rs->getInt($startcol + 0); $this->total_collection = $rs->getString($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating VTotalEksemplar object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->user_id = $rs->getInt($startcol + 0); $this->permission_id = $rs->getInt($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating sfGuardUserPermission object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->etime_id = $rs->getInt($startcol + 0); $this->tag_id = $rs->getInt($startcol + 1); $this->resetModified(); $this->setNew(false); return $startcol + 2; } catch (Exception $e) { throw new PropelException("Error populating EtimeTag object", $e); } }
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); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->user_id = $rs->getInt($startcol + 1); $this->peppage_id = $rs->getInt($startcol + 2); $this->resetModified(); $this->setNew(false); return $startcol + 3; } catch (Exception $e) { throw new PropelException("Error populating Pepuser object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->question_id = $rs->getInt($startcol + 0); $this->user_id = $rs->getInt($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 Interest object", $e); } }
public function getuserRankByExp($xp_point) { $dbAdapter = $this->getServiceLocator()->get('Zend\\Db\\Adapter\\Adapter'); $sql = new Sql($dbAdapter); $select = $sql->select('player_rank_system'); $select->where->lessThan('min_exp', $xp_point); $select->where->greaterThan('max_exp', $xp_point); $statement = $sql->prepareStatementForSqlObject($select); $rowset = $statement->execute(); $resultSet = new ResultSet(); $resultSet->initialize($rowset); return $resultSet; }
public function getServiceConfig() { return array('factories' => array('Senjata\\Model\\SenjataTable' => function ($sm) { $tableGateway = $sm->get('PrajuritTableGateway'); $table = new SenjataTable($tableGateway); return $table; }, 'SenjataTableGateway' => function ($sm) { $dbAdapter = $sm->get('Zend\\Db\\Adapter\\Adapter'); $resultSetPrototype = new ResultSet(); $resultSetPrototype->setArrayObjectPrototype(new Prajurit()); return new TableGateway('senjata', $dbAdapter, null, $resultSetPrototype); })); }
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); } }
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->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); } }
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->resetModified(); $this->setNew(false); return $startcol + 3; } catch (Exception $e) { throw new PropelException("Error populating MemberTemplate object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->class_agenda_id = $rs->getInt($startcol + 1); $this->student_absence_id = $rs->getInt($startcol + 2); $this->resetModified(); $this->setNew(false); return $startcol + 3; } catch (Exception $e) { throw new PropelException("Error populating ClassAbsence 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); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->type_conversion = $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 GradeConversionGroup object", $e); } }
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->student_id = $rs->getInt($startcol + 0); $this->subject_id = $rs->getInt($startcol + 1); $this->academic_calendar_id = $rs->getInt($startcol + 2); $this->resetModified(); $this->setNew(false); return $startcol + 3; } catch (Exception $e) { throw new PropelException("Error populating VRaportPrint object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->counseling_id = $rs->getInt($startcol + 1); $this->employee_id = $rs->getInt($startcol + 2); $this->resetModified(); $this->setNew(false); return $startcol + 3; } catch (Exception $e) { throw new PropelException("Error populating CounselingTutor object", $e); } }
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); } }
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->parent = $rs->getInt($startcol + 3); $this->resetModified(); $this->setNew(false); return $startcol + 4; } catch (Exception $e) { throw new PropelException("Error populating TransactionStatus object", $e); } }
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); } }
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); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->user_id = $rs->getInt($startcol + 1); $this->newsletter = $rs->getBoolean($startcol + 2); $this->mail = $rs->getBoolean($startcol + 3); $this->resetModified(); $this->setNew(false); return $startcol + 4; } catch (Exception $e) { throw new PropelException("Error populating Flags object", $e); } }