本文整理汇总了PHP中ClassGroupPeer类的典型用法代码示例。如果您正苦于以下问题:PHP ClassGroupPeer类的具体用法?PHP ClassGroupPeer怎么用?PHP ClassGroupPeer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ClassGroupPeer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getParentName
public function getParentName()
{
if ($this->getParent() != null && $this->getParent() != 0) {
return ClassGroupPeer::retrieveByPk($this->getParent())->getName();
}
return '-';
}
示例2: executeEnquirer
public function executeEnquirer()
{
$this->applicant = $this->applicant;
$this->error = false;
$this->department = DepartmentPeer::retrieveByPK($this->applicant->getDepartment1());
$this->classGroup = ClassGroupPeer::retrieveByPK($this->applicant->getClassGroup1());
}
示例3: signInTestApplicant
public function signInTestApplicant($user)
{
$this->addCredential('bo');
$this->setAttribute('user_id', $user->getId(), 'bo');
$this->setAttribute('username_long', $user->getName(), 'bo');
$this->setAuthenticated2(true, 'bo');
$this->setAttribute('username', $user->getCode(), 'bo');
$this->setAttribute('department_id1', DepartmentPeer::retrieveByPK($user->getDepartment1())->getId(), 'bo');
$this->setAttribute('department1_name', DepartmentPeer::retrieveByPK($user->getDepartment1())->getName(), 'bo');
#$this->setAttribute('department_id2', $user->getDepartment2()? DepartmentPeer::retrieveByPK($user->getDepartment2())->getId() : '', 'bo');
#$this->setAttribute('department2_name', $user->getDepartment2()? DepartmentPeer::retrieveByPK($user->getDepartment2())->getName() : '', 'bo');
$this->setAttribute('class_name1', ClassGroupPeer::retrieveByPK($user->getClassGroup1())->getName(), 'bo');
$this->setAttribute('class_parent1', ClassGroupPeer::retrieveByPK($user->getClassGroup1())->getParentName(), 'bo');
#$this->setAttribute('class_name2', $user->getClassGroup2()? ClassGroupPeer::retrieveByPK($user->getClassGroup2())->getName() : '', 'bo');
#$this->setAttribute('class_parent2', $user->getClassGroup2()? ClassGroupPeer::retrieveByPK($user->getClassGroup2())->getParentName() : '', 'bo');
$this->setAttribute('login_time', time(), 'bo');
}
示例4: executeGetCourseByAccal
public function executeGetCourseByAccal()
{
$accal_id = $this->getRequestParameter('accal_id');
$accal = AcademicCalendarPeer::retrieveByPK($accal_id);
#$this->forward404Unless($accal);
$class_id = $this->getRequestParameter('class_id');
$class = ClassGroupPeer::retrieveByPK($class_id);
#$this->forward404Unless($class);
$c = new Criteria();
$c->add(CourseSchedulePeer::CLASS_GROUP_ID, $class_id, Criteria::IN);
$c->add(CourseSchedulePeer::ACADEMIC_CALENDAR_ID, $accal_id, Criteria::IN);
$c->add(CourseSchedulePeer::SUBJECT_CURR_ID, 319, Criteria::NOT_IN);
$c->add(CourseSchedulePeer::SUBJECT_CURR_ID, 316, Criteria::NOT_IN);
$objs = CourseSchedulePeer::doSelect($c);
$subjects = array();
foreach ($objs as $o) {
$subjects[$o->getId()] = $o->getSubjectCurr()->getSubject()->getName();
}
$this->content = $subjects;
$this->setTemplate('buildOptions');
}
示例5: link_to_remote
<div class="login">
<p style="text-align:left; width:90%; line-height: 15px; padding-top: 0px;"></p>
<h2 class="contentheading"><b><?php
echo $this->getContext()->getUser()->getAttribute('username_long', '', 'bo');
?>
</b></h2>
<?php
$applicant = TestApplicantPeer::retrieveByPk($this->getContext()->getUser()->getAttribute('user_id', '', 'bo'));
$cls = ClassGroupPeer::retrieveByPk($applicant->getClassGroup1());
?>
<p style="padding-top: 15px; line-height: 20px;">No. Pendaftaran Anda adalah <br><b><?php
echo $applicant->getCode() ? $applicant->getCode() : '-';
?>
</b><br />
Pilihan Kelas Anda adalah <br><b><?php
echo $applicant->getClassGroup1() ? $cls->toString() . ' - ' . $cls->getParentName() : '-';
?>
</b><br /><br>
<?php
echo link_to_remote('Informasi Detail', array('url' => 'auth/test?id=' . $applicant->getId(), 'update' => 'content', 'script' => 'true'), array('class' => 'user_logout', 'title' => 'Detail Informasi'));
?>
<br />
<?php
echo link_to('Logout', '/auth/logout', 'class=user_logout title=keluar');
?>
</p>
</div>
示例6: filterEkskul
public function filterEkskul($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'DEPARTMENT_ID') {
$c->addJoin(DepartmentPeer::ID, AcademicCalendarPeer::DEPARTMENT_ID);
$c->addJoin(SchedulePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$column = DepartmentPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'CODE_CLASS') {
$c->addJoin(SchedulePeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$column = ClassGroupPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'EMPLOYEE_NAME') {
$c->addJoin(SchedulePeer::EMPLOYEE_ID, EmployeePeer::ID);
$column = EmployeePeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'SUBJECT_ID') {
$c->addJoin(SubjectPeer::ID, SubjectCurrPeer::SUBJECT_ID);
$c->addJoin(SubjectCurrPeer::ID, SchedulePeer::SUBJECT_CURR_ID);
$column = SubjectPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'SUBJECT_NAME') {
$c->addJoin(SubjectPeer::ID, SubjectCurrPeer::SUBJECT_ID);
$c->addJoin(SubjectCurrPeer::ID, SchedulePeer::SUBJECT_CURR_ID);
$column = SubjectPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'EKSUL_NAME') {
$c->addJoin(SchedulePeer::GRADE_COMPONENT_ID, GradeComponentPeer::ID);
$column = GradeComponentPeer::getTableMap()->getColumn('NAME');
} else {
$column = SchedulePeer::getTableMap()->getColumn($key);
}
$name = $column->getFullyQualifiedName();
$creoleType = $column->getCreoleType();
if ($creoleType == CreoleTypes::TIMESTAMP) {
$from = $value['from'];
$to = $value['to'];
if ($from != '' && $from != null) {
$c->add($name, $from, Criteria::GREATER_EQUAL);
}
if ($to != '' && $to != null) {
$c->add($name, $to, Criteria::LESS_EQUAL);
}
} else {
if ($creoleType == CreoleTypes::DATE) {
$c->add($name, $value, Criteria::LIKE);
} else {
if ($creoleType == CreoleTypes::INTEGER) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
}
示例7:
<td align="left">2.</td>
<td align="left">Nama</td>
<td align="center">:</td>
<td align="left"><?php
echo $ta->getName() ? $ta->getName() : '-';
?>
</td>
</tr>
<tr>
<td></td>
<td align="left">3.</td>
<td align="left">Pilihan Kelas</td>
<td align="center">:</td>
<td align="left">
<?php
$cls = ClassGroupPeer::retrieveByPk($ta->getClassGroup1());
echo $ta->getClassGroup1() ? $cls->toString() . ' - ' . $cls->getParentName() : '-';
?>
</td>
</tr>
<tr>
<td></td>
<td align="left">4.</td>
<td align="left">Asal Sekolah</td>
<td align="center">:</td>
<td align="left"><?php
echo $ta_detail->getJobTitle() ? $ta_detail->getJobTitle() : '-';
?>
</td>
</tr>
<tr>
示例8: doSelectJoinAllExceptAcademicCalendar
public static function doSelectJoinAllExceptAcademicCalendar(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
VStudentCoursePeer::addSelectColumns($c);
$startcol2 = VStudentCoursePeer::NUM_COLUMNS - VStudentCoursePeer::NUM_LAZY_LOAD_COLUMNS + 1;
StudentPeer::addSelectColumns($c);
$startcol3 = $startcol2 + StudentPeer::NUM_COLUMNS;
SubjectAccalPeer::addSelectColumns($c);
$startcol4 = $startcol3 + SubjectAccalPeer::NUM_COLUMNS;
SubjectCurrPeer::addSelectColumns($c);
$startcol5 = $startcol4 + SubjectCurrPeer::NUM_COLUMNS;
ClassGroupPeer::addSelectColumns($c);
$startcol6 = $startcol5 + ClassGroupPeer::NUM_COLUMNS;
$c->addJoin(VStudentCoursePeer::STUDENT_ID, StudentPeer::ID);
$c->addJoin(VStudentCoursePeer::SUBJECT_ACCAL_ID, SubjectAccalPeer::ID);
$c->addJoin(VStudentCoursePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID);
$c->addJoin(VStudentCoursePeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = VStudentCoursePeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = StudentPeer::getOMClass();
$cls = Propel::import($omClass);
$obj2 = new $cls();
$obj2->hydrate($rs, $startcol2);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj2 = $temp_obj1->getStudent();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addVStudentCourse($obj1);
break;
}
}
if ($newObject) {
$obj2->initVStudentCourses();
$obj2->addVStudentCourse($obj1);
}
$omClass = SubjectAccalPeer::getOMClass();
$cls = Propel::import($omClass);
$obj3 = new $cls();
$obj3->hydrate($rs, $startcol3);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj3 = $temp_obj1->getSubjectAccal();
if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) {
$newObject = false;
$temp_obj3->addVStudentCourse($obj1);
break;
}
}
if ($newObject) {
$obj3->initVStudentCourses();
$obj3->addVStudentCourse($obj1);
}
$omClass = SubjectCurrPeer::getOMClass();
$cls = Propel::import($omClass);
$obj4 = new $cls();
$obj4->hydrate($rs, $startcol4);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj4 = $temp_obj1->getSubjectCurr();
if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) {
$newObject = false;
$temp_obj4->addVStudentCourse($obj1);
break;
}
}
if ($newObject) {
$obj4->initVStudentCourses();
$obj4->addVStudentCourse($obj1);
}
$omClass = ClassGroupPeer::getOMClass();
$cls = Propel::import($omClass);
$obj5 = new $cls();
$obj5->hydrate($rs, $startcol5);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj5 = $temp_obj1->getClassGroup();
if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) {
$newObject = false;
$temp_obj5->addVStudentCourse($obj1);
break;
}
}
if ($newObject) {
$obj5->initVStudentCourses();
$obj5->addVStudentCourse($obj1);
}
$results[] = $obj1;
//.........这里部分代码省略.........
示例9: elseif
?>
</p>
</td>
<td><?php
echo $test_applicant->getName() ? $test_applicant->getName() : '-';
?>
</td>
<td><?php
echo $test_applicant->getClassGroup1() ? ClassGroupPeer::retrieveByPK($test_applicant->getClassGroup1())->getName() : '-';
?>
</td>
<td><?php
echo $test_applicant->getClassGroup1() ? ClassGroupPeer::retrieveByPK($test_applicant->getClassGroup1())->getParentName() : '-';
?>
</td>
<td>
<?php
if ($test_applicant->getApplicantType() == TestApplicant::STATUS_NEW) {
echo __('Baru');
} elseif ($test_applicant->getApplicantType() == TestApplicant::STATUS_TRANSFER) {
echo __('Pindahan');
} elseif ($test_applicant->getApplicantType() == TestApplicant::STATUS_EXTEND) {
echo __('Lanjutan');
}
?>
</td>
示例10: doSelectJoinAllExceptStudentDetail
public static function doSelectJoinAllExceptStudentDetail(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
VMemberStudentPeer::addSelectColumns($c);
$startcol2 = VMemberStudentPeer::NUM_COLUMNS - VMemberStudentPeer::NUM_LAZY_LOAD_COLUMNS + 1;
MemberDetailPeer::addSelectColumns($c);
$startcol3 = $startcol2 + MemberDetailPeer::NUM_COLUMNS;
DepartmentPeer::addSelectColumns($c);
$startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS;
AcademicCalendarPeer::addSelectColumns($c);
$startcol5 = $startcol4 + AcademicCalendarPeer::NUM_COLUMNS;
ClassGroupPeer::addSelectColumns($c);
$startcol6 = $startcol5 + ClassGroupPeer::NUM_COLUMNS;
StudentPeer::addSelectColumns($c);
$startcol7 = $startcol6 + StudentPeer::NUM_COLUMNS;
$c->addJoin(VMemberStudentPeer::MEMBER_DETAIL_ID, MemberDetailPeer::ID);
$c->addJoin(VMemberStudentPeer::DEPARTMENT_ID, DepartmentPeer::ID);
$c->addJoin(VMemberStudentPeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$c->addJoin(VMemberStudentPeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$c->addJoin(VMemberStudentPeer::STUDENT_ID, StudentPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = VMemberStudentPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = MemberDetailPeer::getOMClass();
$cls = Propel::import($omClass);
$obj2 = new $cls();
$obj2->hydrate($rs, $startcol2);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj2 = $temp_obj1->getMemberDetail();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addVMemberStudent($obj1);
break;
}
}
if ($newObject) {
$obj2->initVMemberStudents();
$obj2->addVMemberStudent($obj1);
}
$omClass = DepartmentPeer::getOMClass();
$cls = Propel::import($omClass);
$obj3 = new $cls();
$obj3->hydrate($rs, $startcol3);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj3 = $temp_obj1->getDepartment();
if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) {
$newObject = false;
$temp_obj3->addVMemberStudent($obj1);
break;
}
}
if ($newObject) {
$obj3->initVMemberStudents();
$obj3->addVMemberStudent($obj1);
}
$omClass = AcademicCalendarPeer::getOMClass();
$cls = Propel::import($omClass);
$obj4 = new $cls();
$obj4->hydrate($rs, $startcol4);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj4 = $temp_obj1->getAcademicCalendar();
if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) {
$newObject = false;
$temp_obj4->addVMemberStudent($obj1);
break;
}
}
if ($newObject) {
$obj4->initVMemberStudents();
$obj4->addVMemberStudent($obj1);
}
$omClass = ClassGroupPeer::getOMClass();
$cls = Propel::import($omClass);
$obj5 = new $cls();
$obj5->hydrate($rs, $startcol5);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj5 = $temp_obj1->getClassGroup();
if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) {
$newObject = false;
$temp_obj5->addVMemberStudent($obj1);
break;
}
}
if ($newObject) {
$obj5->initVMemberStudents();
//.........这里部分代码省略.........
示例11: filterDetail
public function filterDetail($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'NG_REG_TEST_PERIOD_ID') {
$c->addJoin(NgRegTestPeriodPeer::ID, NgRegTestDetailPeer::NG_REG_TEST_PERIOD_ID);
$column = NgRegTestPeriodPeer::getTableMap()->getColumn('ID');
} else {
$column = NgRegTestDetailPeer::getTableMap()->getColumn($key);
}
$name = $column->getFullyQualifiedName();
$creoleType = $column->getCreoleType();
if ($creoleType == CreoleTypes::TIMESTAMP) {
$from = $value['from'];
$to = $value['to'];
if ($from != '' && $from != null) {
$c->add($name, $from, Criteria::GREATER_EQUAL);
}
if ($to != '' && $to != null) {
$c->add($name, $to, Criteria::LESS_EQUAL);
}
} else {
if ($creoleType == CreoleTypes::INTEGER) {
if ($name == StudentPeer::CLASS_GROUP_ID) {
$cg = ClassGroupPeer::retrieveByPK($value);
$c->add($name, $cg->getChildRecurs(), Criteria::IN);
} else {
$c->add($name, $value, Criteria::EQUAL);
}
} else {
if ($creoleType == CreoleTypes::VARCHAR || $creoleType == CreoleTypes::CHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例12: elseif
++$i;
?>
"<?php
echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
?>
","<?php
echo $test_applicant->getCode();
?>
","<?php
echo $test_applicant->getName();
?>
","<?php
echo DepartmentPeer::retrieveByPK($test_applicant->getDepartment1())->toString();
?>
","<?php
echo ClassGroupPeer::retrieveByPK($test_applicant->getClassGroup1())->toString();
?>
","<?php
echo $test_applicant->getRegTestPeriod1() ? RegTestPeriodPeer::retrieveByPK($test_applicant->getRegTestPeriod1())->getRegPeriod()->getName() : '-';
?>
","<?php
if ($test_applicant->getApplicantType() == TestApplicant::STATUS_NEW) {
echo __('Baru');
} elseif ($test_applicant->getApplicantType() == TestApplicant::STATUS_TRANSFER) {
echo __('Pindahan');
} elseif ($test_applicant->getApplicantType() == TestApplicant::STATUS_EXTEND) {
echo __('Lanjutan');
}
?>
","<?php
echo $test_applicant->getYear();
示例13: executeGetClassByAccal
public function executeGetClassByAccal()
{
$accal_id = $this->getRequestParameter('academic_calendar_id');
$accal = AcademicCalendarPeer::retrieveByPK($accal_id);
$this->forward404Unless($accal);
$cg_ids = $accal->getClassGroup()->getChildRecurs();
$c = new Criteria();
$c->add(ClassGroupPeer::ID, $cg_ids, Criteria::IN);
$cgs = ClassGroupPeer::doSelectOrdered($c);
$classes = array();
foreach ($cgs as $cg) {
$classes[$cg->getId()] = $cg->toString();
}
$this->content = $classes;
$this->setTemplate('buildOptions');
}
示例14: doSelectJoinAllExceptLocationRelatedByLocation2
public static function doSelectJoinAllExceptLocationRelatedByLocation2(Criteria $c, $con = null)
{
$c = clone $c;
if ($c->getDbName() == Propel::getDefaultDB()) {
$c->setDbName(self::DATABASE_NAME);
}
TestApplicantPeer::addSelectColumns($c);
$startcol2 = TestApplicantPeer::NUM_COLUMNS - TestApplicantPeer::NUM_LAZY_LOAD_COLUMNS + 1;
TestApplicantDetailPeer::addSelectColumns($c);
$startcol3 = $startcol2 + TestApplicantDetailPeer::NUM_COLUMNS;
DepartmentPeer::addSelectColumns($c);
$startcol4 = $startcol3 + DepartmentPeer::NUM_COLUMNS;
ClassGroupPeer::addSelectColumns($c);
$startcol5 = $startcol4 + ClassGroupPeer::NUM_COLUMNS;
RegTestPeriodPeer::addSelectColumns($c);
$startcol6 = $startcol5 + RegTestPeriodPeer::NUM_COLUMNS;
DepartmentPeer::addSelectColumns($c);
$startcol7 = $startcol6 + DepartmentPeer::NUM_COLUMNS;
ClassGroupPeer::addSelectColumns($c);
$startcol8 = $startcol7 + ClassGroupPeer::NUM_COLUMNS;
RegTestPeriodPeer::addSelectColumns($c);
$startcol9 = $startcol8 + RegTestPeriodPeer::NUM_COLUMNS;
$c->addJoin(TestApplicantPeer::TEST_APPLICANT_DETAIL_ID, TestApplicantDetailPeer::ID);
$c->addJoin(TestApplicantPeer::DEPARTMENT_1, DepartmentPeer::ID);
$c->addJoin(TestApplicantPeer::CLASS_GROUP1, ClassGroupPeer::ID);
$c->addJoin(TestApplicantPeer::REG_TEST_PERIOD1, RegTestPeriodPeer::ID);
$c->addJoin(TestApplicantPeer::DEPARTMENT_2, DepartmentPeer::ID);
$c->addJoin(TestApplicantPeer::CLASS_GROUP2, ClassGroupPeer::ID);
$c->addJoin(TestApplicantPeer::REG_TEST_PERIOD2, RegTestPeriodPeer::ID);
$rs = BasePeer::doSelect($c, $con);
$results = array();
while ($rs->next()) {
$omClass = TestApplicantPeer::getOMClass();
$cls = Propel::import($omClass);
$obj1 = new $cls();
$obj1->hydrate($rs);
$omClass = TestApplicantDetailPeer::getOMClass();
$cls = Propel::import($omClass);
$obj2 = new $cls();
$obj2->hydrate($rs, $startcol2);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj2 = $temp_obj1->getTestApplicantDetail();
if ($temp_obj2->getPrimaryKey() === $obj2->getPrimaryKey()) {
$newObject = false;
$temp_obj2->addTestApplicant($obj1);
break;
}
}
if ($newObject) {
$obj2->initTestApplicants();
$obj2->addTestApplicant($obj1);
}
$omClass = DepartmentPeer::getOMClass();
$cls = Propel::import($omClass);
$obj3 = new $cls();
$obj3->hydrate($rs, $startcol3);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj3 = $temp_obj1->getDepartmentRelatedByDepartment1();
if ($temp_obj3->getPrimaryKey() === $obj3->getPrimaryKey()) {
$newObject = false;
$temp_obj3->addTestApplicantRelatedByDepartment1($obj1);
break;
}
}
if ($newObject) {
$obj3->initTestApplicantsRelatedByDepartment1();
$obj3->addTestApplicantRelatedByDepartment1($obj1);
}
$omClass = ClassGroupPeer::getOMClass();
$cls = Propel::import($omClass);
$obj4 = new $cls();
$obj4->hydrate($rs, $startcol4);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj4 = $temp_obj1->getClassGroupRelatedByClassGroup1();
if ($temp_obj4->getPrimaryKey() === $obj4->getPrimaryKey()) {
$newObject = false;
$temp_obj4->addTestApplicantRelatedByClassGroup1($obj1);
break;
}
}
if ($newObject) {
$obj4->initTestApplicantsRelatedByClassGroup1();
$obj4->addTestApplicantRelatedByClassGroup1($obj1);
}
$omClass = RegTestPeriodPeer::getOMClass();
$cls = Propel::import($omClass);
$obj5 = new $cls();
$obj5->hydrate($rs, $startcol5);
$newObject = true;
for ($j = 0, $resCount = count($results); $j < $resCount; $j++) {
$temp_obj1 = $results[$j];
$temp_obj5 = $temp_obj1->getRegTestPeriodRelatedByRegTestPeriod1();
if ($temp_obj5->getPrimaryKey() === $obj5->getPrimaryKey()) {
$newObject = false;
//.........这里部分代码省略.........
示例15: input_hidden_tag
<?php
echo input_hidden_tag('accal2', $accal2);
?>
</td>
</tr>
<tr>
<td width="20%" style="vertical-align:middle;"><label><?php
echo __('Class group');
?>
</label></td>
<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<p class="detail" style="font-weight: bold;">
<?php
echo $class2 ? ClassGroupPeer::retrieveByPk($class2)->getName() : '-';
?>
</p>
<?php
echo input_hidden_tag('class2', $class2);
?>
</td>
</tr>
</tbody>
</table>
</td></tr>
</table>
<table class="form">
<tr><td class="form">
<table class="form_content" width="100%">