public function countTestApplicants($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseTestApplicantPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(TestApplicantPeer::TEST_APPLICANT_DETAIL_ID, $this->getId());
     return TestApplicantPeer::doCount($criteria, $distinct, $con);
 }
Example #2
0
 public function countTestApplicantsRelatedByDepartment2($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseTestApplicantPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(TestApplicantPeer::DEPARTMENT_2, $this->getId());
     return TestApplicantPeer::doCount($criteria, $distinct, $con);
 }
				  <td><?php 
        echo $test_schedule->getTestSchedule()->getRegTestPeriod()->getRegPeriod() ? $test_schedule->getTestSchedule()->getRegTestPeriod()->getRegPeriod()->getAcademicCalendar()->getYear() : '-';
        ?>
</td> 
                  <td><?php 
        echo $test_schedule->getTestSchedule()->getStart() ? $test_schedule->getTestSchedule()->getStart('d-m-Y') : '-';
        ?>
</td>
                  <td><?php 
        echo $test_schedule->getLocationId() ? $test_schedule->getLocation()->toString() . ' (' . $test_schedule->getLocation()->getCapacity() . ')' : '-';
        ?>
</td>
                  <td align="center" style="text-align:center;">
                  	<?php 
        $c = new Criteria();
        $c->add(TestApplicantPeer::REG_TEST_PERIOD1, $test_schedule->getTestSchedule()->getRegTestPeriodId());
        $c->add(TestApplicantPeer::LOCATION1, $test_schedule->getLocationId());
        $applicant_count = TestApplicantPeer::doCount($c);
        echo $applicant_count;
        ?>
                  </td>
			</tr>
		<?php 
    }
    ?>
	<?php 
}
?>
	</tbody>
</table>
Example #4
0
 public function countTestApplicantsRelatedByRegTestPeriod2($criteria = null, $distinct = false, $con = null)
 {
     include_once 'lib/model/om/BaseTestApplicantPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     $criteria->add(TestApplicantPeer::REG_TEST_PERIOD2, $this->getId());
     return TestApplicantPeer::doCount($criteria, $distinct, $con);
 }