</td> <td><?php echo $test_schedule->getRegTestPeriod()->getRegPeriod() ? $test_schedule->getRegTestPeriod()->getRegPeriod()->getAcademicCalendar()->getDepartment()->toString() : '-'; ?> </td> <td><?php echo $test_schedule->getRegTestPeriod()->getRegPeriod() ? $test_schedule->getRegTestPeriod()->getRegPeriod()->getAcademicCalendar()->getYear() : '-'; ?> </td> <td><?php echo $test_schedule->getStart() ? $test_schedule->getStart('d-m-Y') : '-'; ?> </td> <td align="center" style="text-align:center;"> <?php $c = new Criteria(); $c->add(VTestApplSched1Peer::TEST_SCHEDULE_ID, $test_schedule->getId()); $test_count = VTestApplSched1Peer::doCount($c); echo $test_count; ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table>
public function countVTestApplSched1s($criteria = null, $distinct = false, $con = null) { include_once 'lib/model/om/BaseVTestApplSched1Peer.php'; if ($criteria === null) { $criteria = new Criteria(); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } $criteria->add(VTestApplSched1Peer::LOCATION_ID, $this->getId()); return VTestApplSched1Peer::doCount($criteria, $distinct, $con); }