/** * Executes index action * */ public function executeFindme() { $c = new Criteria(); $branches = BranchPeer::doSelect($c); $options = array(); /*$options[] = 'Select Branch';*/ foreach ($branches as $branch) { $options[$branch->getId()] = $branch->getName(); } $this->broptions = $options; $c = new Criteria(); $degrees = DegreePeer::doSelect($c); $options = array(); /*$options[] = 'Select Degree';*/ foreach ($degrees as $degree) { $options[$degree->getId()] = $degree->getName(); } $this->dgoptions = $options; }
public static function doSelectOrdered(Criteria $criteria, $con = null) { $criteria->addAscendingOrderByColumn(DegreePeer::CODE); $result = DegreePeer::doSelect($criteria); return $result; }
public static function retrieveByPKs($pks, $con = null) { if ($con === null) { $con = Propel::getConnection(self::DATABASE_NAME); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(); $criteria->add(DegreePeer::ID, $pks, Criteria::IN); $objs = DegreePeer::doSelect($criteria, $con); } return $objs; }