Exemple #1
0
        ?>
</td>  
                    <td>
						<?php 
        echo $test_schedule->getStart() ? $test_schedule->getStart('d-m-Y') : '-';
        ?>
                    	<?php 
        #$sf_user->setCulture('id_ID');
        #echo format_date($test_schedule->getStart(), 'D');
        ?>
                    </td>
                    <td align="center" style="text-align:center;">
                    	<?php 
        $c = new Criteria();
        $c->add(VTestApplSchedPeer::TEST_SCHEDULE_ID, $test_schedule->getId());
        $test_count = VTestApplSchedPeer::doCount($c);
        ?>
                        <?php 
        echo link_to_remote($test_count, array('url' => 'test_schedule/listLocation?id=' . $test_schedule->getId(), 'update' => 'content', 'script' => 'true', 'loading' => "showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'white', 'title' => __('Jumlah Ruangan')));
        ?>
                    </td>
				</tr>
		<?php 
    }
    ?>
		<?php 
}
?>
			</tbody>
		</table>
		<?php 
 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
 {
     $keys = VTestApplSchedPeer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setTestApplicantId($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setTestScheduleId($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setLocation1($arr[$keys[2]]);
     }
     if (array_key_exists($keys[3], $arr)) {
         $this->setLocation2($arr[$keys[3]]);
     }
     if (array_key_exists($keys[4], $arr)) {
         $this->setAvgGrade($arr[$keys[4]]);
     }
     if (array_key_exists($keys[5], $arr)) {
         $this->setRank($arr[$keys[5]]);
     }
     if (array_key_exists($keys[6], $arr)) {
         $this->setDescription($arr[$keys[6]]);
     }
 }
Exemple #3
0
 public function getVTestApplSchedsJoinLocationRelatedByLocation2($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVTestApplSchedPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVTestApplScheds === null) {
         if ($this->isNew()) {
             $this->collVTestApplScheds = array();
         } else {
             $criteria->add(VTestApplSchedPeer::TEST_APPLICANT_ID, $this->getId());
             $this->collVTestApplScheds = VTestApplSchedPeer::doSelectJoinLocationRelatedByLocation2($criteria, $con);
         }
     } else {
         $criteria->add(VTestApplSchedPeer::TEST_APPLICANT_ID, $this->getId());
         if (!isset($this->lastVTestApplSchedCriteria) || !$this->lastVTestApplSchedCriteria->equals($criteria)) {
             $this->collVTestApplScheds = VTestApplSchedPeer::doSelectJoinLocationRelatedByLocation2($criteria, $con);
         }
     }
     $this->lastVTestApplSchedCriteria = $criteria;
     return $this->collVTestApplScheds;
 }
 public static function retrieveByPK($test_applicant_id, $test_schedule_id, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $criteria = new Criteria();
     $criteria->add(VTestApplSchedPeer::TEST_APPLICANT_ID, $test_applicant_id);
     $criteria->add(VTestApplSchedPeer::TEST_SCHEDULE_ID, $test_schedule_id);
     $v = VTestApplSchedPeer::doSelect($criteria, $con);
     return !empty($v) ? $v[0] : null;
 }
Exemple #5
0
 public function getVTestApplSchedsRelatedByLocation2JoinTestSchedule($criteria = null, $con = null)
 {
     include_once 'lib/model/om/BaseVTestApplSchedPeer.php';
     if ($criteria === null) {
         $criteria = new Criteria();
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if ($this->collVTestApplSchedsRelatedByLocation2 === null) {
         if ($this->isNew()) {
             $this->collVTestApplSchedsRelatedByLocation2 = array();
         } else {
             $criteria->add(VTestApplSchedPeer::LOCATION2, $this->getId());
             $this->collVTestApplSchedsRelatedByLocation2 = VTestApplSchedPeer::doSelectJoinTestSchedule($criteria, $con);
         }
     } else {
         $criteria->add(VTestApplSchedPeer::LOCATION2, $this->getId());
         if (!isset($this->lastVTestApplSchedRelatedByLocation2Criteria) || !$this->lastVTestApplSchedRelatedByLocation2Criteria->equals($criteria)) {
             $this->collVTestApplSchedsRelatedByLocation2 = VTestApplSchedPeer::doSelectJoinTestSchedule($criteria, $con);
         }
     }
     $this->lastVTestApplSchedRelatedByLocation2Criteria = $criteria;
     return $this->collVTestApplSchedsRelatedByLocation2;
 }