Beispiel #1
0
 /**
  * verify if Gateway row specified in [GatUid] exists.
  *
  * @param string $sProUid the uid of the Prolication
  */
 public function gatewayExists($GatUid)
 {
     $con = Propel::getConnection(GatewayPeer::DATABASE_NAME);
     try {
         $oPro = GatewayPeer::retrieveByPk($GatUid);
         if (is_object($oPro) && get_class($oPro) == 'Gateway') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }