. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ //require_once 'classes/model/om/BaseIsoCountry.php'; /** * Skeleton subclass for representing a row from the 'ISO_COUNTRY' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * * @package workflow.engine.classes.model */ class IsoCountry extends BaseIsoCountry { public function findById($UID) { $oCriteria = new Criteria('workflow'); $oCriteria->addSelectColumn(IsoCountryPeer::IC_UID); $oCriteria->addSelectColumn(IsoCountryPeer::IC_NAME); $oCriteria->add(IsoCountryPeer::IC_UID, $UID); $oDataset = IsoCountryPeer::doSelectRS($oCriteria); $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC); $oDataset->next(); return $oDataset->getRow(); } public function findByIcName($IC_NAME) { $oCriteria = new Criteria('workflow'); $oCriteria->addSelectColumn(IsoCountryPeer::IC_UID); $oCriteria->addSelectColumn(IsoCountryPeer::IC_NAME); $oCriteria->add(IsoCountryPeer::IC_NAME, $IC_NAME . '%', Criteria::LIKE); $oDataset = IsoCountryPeer::doSelectRS($oCriteria); $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC); $oDataset->next(); return $oDataset->getRow(); } }