本文整理汇总了PHP中AcademicCalendarPeer::getTableMap方法的典型用法代码示例。如果您正苦于以下问题:PHP AcademicCalendarPeer::getTableMap方法的具体用法?PHP AcademicCalendarPeer::getTableMap怎么用?PHP AcademicCalendarPeer::getTableMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcademicCalendarPeer
的用法示例。
在下文中一共展示了AcademicCalendarPeer::getTableMap方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPhpNameMap
public static function getPhpNameMap()
{
if (self::$phpNameMap === null) {
$map = AcademicCalendarPeer::getTableMap();
$columns = $map->getColumns();
$nameMap = array();
foreach ($columns as $column) {
$nameMap[$column->getPhpName()] = $column->getColumnName();
}
self::$phpNameMap = $nameMap;
}
return self::$phpNameMap;
}
示例2: filterCounseling
public function filterCounseling($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'NAME') {
$c->addJoin(ClassCounselingPeer::STUDENT_ID, StudentPeer::ID);
$column = StudentPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'CODE') {
$c->addJoin(ClassCounselingPeer::STUDENT_ID, StudentPeer::ID);
$column = StudentPeer::getTableMap()->getColumn('CODE');
} elseif ($key == 'CODE2') {
$c->addJoin(ClassCounselingPeer::STUDENT_ID, StudentPeer::ID);
$column = StudentPeer::getTableMap()->getColumn('CODE2');
} elseif ($key == 'YEAR') {
$c->addJoin(ClassCounselingPeer::STUDENT_ID, StudentPeer::ID);
$column = StudentPeer::getTableMap()->getColumn('YEAR');
} elseif ($key == 'SUBJECT_NAME') {
$c->addJoin(ClassCounselingPeer::COURSE_SCHEDULE_ID, CourseSchedulePeer::ID);
$c->addJoin(CourseSchedulePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID);
$c->addJoin(SubjectCurrPeer::SUBJECT_ID, SubjectPeer::ID);
$column = SubjectPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'ACADEMIC_CALENDAR_ID') {
$c->addJoin(ClassCounselingPeer::COURSE_SCHEDULE_ID, CourseSchedulePeer::ID);
$c->addJoin(CourseSchedulePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'CLASS_NAME') {
$c->addJoin(ClassCounselingPeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$column = ClassGroupPeer::getTableMap()->getColumn('NAME');
} else {
$column = ClassCounselingPeer::getTableMap()->getColumn($key);
}
$name = $column->getFullyQualifiedName();
$creoleType = $column->getCreoleType();
if ($creoleType == CreoleTypes::TIMESTAMP) {
$c->add($name, $value, Criteria::LIKE);
} 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 || $creoleType == CreoleTypes::CHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
}
示例3: filterPayment
public function filterPayment($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'ACADEMIC_COST_COMPONENT_ID') {
$c->addJoin(AcademicCostPeer::ACADEMIC_COST_COMPONENT_ID, AcademicCostComponentPeer::ID);
$c->addJoin(PaymentJournalPeer::ACADEMIC_COST_ID, AcademicCostPeer::ID);
$column = AcademicCostPeer::getTableMap()->getColumn($key);
} elseif ($key == 'YEAR') {
$c->addJoin(AcademicCalendarPeer::ID, StudentPeer::ACADEMIC_CALENDAR_ID);
$c->addJoin(PaymentJournalPeer::PAYER, StudentPeer::ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('NAME');
} else {
$column = PaymentJournalPeer::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 || $creoleType == CreoleTypes::CHAR) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例4: filter
public function filter($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'NG_REG_PERIOD_ID') {
$c->addJoin(NgRegTestPeriodPeer::ID, NgTestApplicantPeer::NG_REG_TEST_PERIOD_ID);
$c->addJoin(NgRegPeriodPeer::ID, NgRegTestPeriodPeer::NG_REG_PERIOD_ID);
$column = NgRegPeriodPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'ACADEMIC_CALENDAR_ID') {
$c->addJoin(NgRegTestPeriodPeer::ID, NgTestApplicantPeer::NG_REG_TEST_PERIOD_ID);
$c->addJoin(NgRegPeriodPeer::ID, NgRegTestPeriodPeer::NG_REG_PERIOD_ID);
$c->addJoin(AcademicCalendarPeer::ID, NgRegPeriodPeer::ACADEMIC_CALENDAR_ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('ID');
} else {
$column = NgTestApplicantPeer::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) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR || $creoleType == CreoleTypes::CHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例5: filterLocation
public function filterLocation($cr, $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(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$c->addJoin(RegTestPeriodPeer::ID, TestSchedulePeer::REG_TEST_PERIOD_ID);
$c->addJoin(RegPeriodPeer::ID, RegTestPeriodPeer::REG_PERIOD_ID);
$c->addJoin(AcademicCalendarPeer::ID, RegPeriodPeer::ACADEMIC_CALENDAR_ID);
$c->addJoin(DepartmentPeer::ID, AcademicCalendarPeer::DEPARTMENT_ID);
$column = DepartmentPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'YEAR') {
$c->addJoin(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$c->addJoin(RegTestPeriodPeer::ID, TestSchedulePeer::REG_TEST_PERIOD_ID);
$c->addJoin(RegPeriodPeer::ID, RegTestPeriodPeer::REG_PERIOD_ID);
$c->addJoin(AcademicCalendarPeer::ID, RegPeriodPeer::ACADEMIC_CALENDAR_ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('YEAR');
} elseif ($key == 'NAME') {
$c->addJoin(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$c->addJoin(RegTestPeriodPeer::ID, TestSchedulePeer::REG_TEST_PERIOD_ID);
$column = RegTestPeriodPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'CODE') {
$c->addJoin(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$c->addJoin(RegTestPeriodPeer::ID, TestSchedulePeer::REG_TEST_PERIOD_ID);
$column = RegTestPeriodPeer::getTableMap()->getColumn('CODE');
} elseif ($key == 'REG_PERIOD_ID') {
$c->addJoin(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$c->addJoin(RegTestPeriodPeer::ID, TestSchedulePeer::REG_TEST_PERIOD_ID);
$c->addJoin(RegPeriodPeer::ID, RegTestPeriodPeer::REG_PERIOD_ID);
$column = RegTestPeriodPeer::getTableMap()->getColumn('CODE');
} elseif ($key == 'START') {
$c->addJoin(TestSchedulePeer::ID, VTestApplSched1Peer::TEST_SCHEDULED_ID);
$column = TestSchedulePeer::getTableMap()->getColumn('START');
} else {
$column = VTestApplSched1Peer::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) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例6: filter
public function filter($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'SUBJECT_CURR_ID') {
$c->addJoin(StudentCoursePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID);
$column = SubjectCurrPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'ACADEMIC_CALENDAR_ID') {
$c->addJoin(StudentCoursePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'CREDIT') {
$c->addJoin(StudentCoursePeer::SUBJECT_CURR_ID, SubjectCurrPeer::ID);
$c->addJoin(SubjectCurrPeer::SUBJECT_ID, SubjectPeer::ID);
$column = SubjectPeer::getTableMap()->getColumn($key);
} elseif ($key == 'CLASS_NAME') {
$c->addJoin(StudentCoursePeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$column = ClassGroupPeer::getTableMap()->getColumn('NAME');
} else {
$column = StudentCoursePeer::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) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR || $creoleType == CreoleTypes::CHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例7: filterCourse
public function filterCourse($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'ACADEMIC_CALENDAR_ID') {
$c->addJoin(VCoursePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'DEPARTMENT_ID') {
$c->addJoin(DepartmentPeer::ID, AcademicCalendarPeer::DEPARTMENT_ID);
$c->addJoin(VCoursePeer::ACADEMIC_CALENDAR_ID, AcademicCalendarPeer::ID);
$column = DepartmentPeer::getTableMap()->getColumn('ID');
} elseif ($key == 'CODE_CLASS') {
$c->addJoin(VCoursePeer::CLASS_GROUP_ID, ClassGroupPeer::ID);
$column = ClassGroupPeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'EMPLOYEE_NAME') {
$c->addJoin(VCoursePeer::ID, CourseScheduleDetailPeer::ID);
$c->addJoin(CourseScheduleDetailPeer::COURSE_SCHEDULE_ID, CourseSchedulePeer::ID);
$c->addJoin(CourseSchedulePeer::ID, CourseScheduleTutorPeer::COURSE_SCHEDULE_ID);
$c->addJoin(CourseScheduleTutorPeer::EMPLOYEE_ID, EmployeePeer::ID);
$column = EmployeePeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'DAY') {
$c->addJoin(VCoursePeer::ID, CourseScheduleDetailPeer::ID);
$column = CourseScheduleDetailPeer::getTableMap()->getColumn('DAY');
} elseif ($key == 'SUBJECT_ID') {
$c->addJoin(SubjectPeer::ID, SubjectCurrPeer::SUBJECT_ID);
$c->addJoin(SubjectCurrPeer::ID, VCoursePeer::SUBJECT_CURR_ID);
$column = SubjectCurrPeer::getTableMap()->getColumn($key);
} elseif ($key == 'SUBJECT_NAME') {
$c->addJoin(SubjectPeer::ID, SubjectCurrPeer::SUBJECT_ID);
$c->addJoin(SubjectCurrPeer::ID, VCoursePeer::SUBJECT_CURR_ID);
$column = SubjectPeer::getTableMap()->getColumn('NAME');
} else {
$column = VCoursePeer::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) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}
示例8: filter
public function filter($c, $filters)
{
$filters_key = array_keys($filters);
foreach ($filters_key as $key) {
$value = $filters[$key];
if ($value == '' || $value == null) {
continue;
}
if ($key == 'YEAR') {
$c->addJoin(SubjectAccalPeer::SUBJECT_ID, SubjectPeer::ID);
$c->addJoin(AcademicCalendarPeer::ID, SubjectAccalPeer::ACADEMIC_CALENDAR_ID);
$column = AcademicCalendarPeer::getTableMap()->getColumn('YEAR');
} elseif ($key == 'EMPLOYEE_NAME') {
$c->addJoin(SubjectAccalPeer::SUBJECT_ID, SubjectPeer::ID);
$c->addJoin(EmployeePeer::ID, SubjectAccalPeer::EMPLOYEE_ID);
$column = EmployeePeer::getTableMap()->getColumn('NAME');
} elseif ($key == 'CODE') {
$column = SubjectPeer::getTableMap()->getColumn('CODE');
} else {
$column = SubjectPeer::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) {
$c->add($name, $value, Criteria::EQUAL);
} else {
if ($creoleType == CreoleTypes::VARCHAR || $creoleType == CreoleTypes::CHAR) {
$c->add($name, "%{$value}%", Criteria::LIKE);
}
}
}
}
}