/** * description * * @return return_type * @param var_type $var */ public static function getPropertyNames() { $c = new Criteria(); $c->clearSelectColumns()->addSelectColumn(SkosPropertyPeer::ID); $c->addSelectColumn(self::NAME); $rs = SkosPropertyPeer::doSelectRS($c); while ($rs->next()) { $results[$rs->getString(2)] = $rs->getInt(1); } return $results; }
/** * Method to do selects. * * @param Criteria $criteria The Criteria object used to build the SELECT statement. * @param Connection $con * @return array Array of selected Objects * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doSelect(Criteria $criteria, $con = null) { return SkosPropertyPeer::populateObjects(SkosPropertyPeer::doSelectRS($criteria, $con)); }