echo __('Hari'); ?> </th></tr> </thead> <tbody> <?php if ($pager->getNbResults() < 1) { ?> <tr class="list"><td colspan="100"><div class="no_record"><?php echo __('No record found'); ?> </div></td></tr> <?php } else { $c = new Criteria(); $cs_schedules = VCourseDayPeer::doSelect($c); $i = 0; foreach ($cs_schedules as $cs_schedule) { ?> <tr class="list even"><td colspan="2"><b><?php echo $cs_schedule->getDayString(); ?> </b></td></tr> <tr class="list even"> <td colspan="2" width="100%"> <table class="list_content" width="100%"> <thead> <tr> <th class='first' width="10%"><?php
public static function doValidate(VCourseDay $obj, $cols = null) { $columns = array(); if ($cols) { $dbMap = Propel::getDatabaseMap(VCourseDayPeer::DATABASE_NAME); $tableMap = $dbMap->getTable(VCourseDayPeer::TABLE_NAME); if (!is_array($cols)) { $cols = array($cols); } foreach ($cols as $colName) { if ($tableMap->containsColumn($colName)) { $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); $columns[$colName] = $obj->{$get}(); } } } else { } $res = BasePeer::doValidate(VCourseDayPeer::DATABASE_NAME, VCourseDayPeer::TABLE_NAME, $columns); if ($res !== true) { $request = sfContext::getInstance()->getRequest(); foreach ($res as $failed) { $col = VCourseDayPeer::translateFieldname($failed->getColumn(), BasePeer::TYPE_COLNAME, BasePeer::TYPE_PHPNAME); $request->setError($col, $failed->getMessage()); } } return $res; }
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = VCourseDayPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) { $this->setDay($arr[$keys[0]]); } }