<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of cls_subscription
 *
 * @author Asha
 */
class Subscription {
    //put your code here

     //Function to save All currency code and data to table

     public static function saveSubscriptionDetails($obSubscriptionVo)
    {
            $objResult                               = new stdClass();
            $tableName                               = DbHelper::setTablePrefix('currency_master');
            $currencyId                            = DbHelper::insert($tableName, array('vcurrency_name'                  =>  generalMethods::escapeString($obCurrencyVo->vcurrency_name),
                                                                                     'vcurrency_code'             =>  generalMethods::escapeString($obCurrencyVo->vcurrency_code),
                                                                                     'vcurrency_symbol'              =>  generalMethods::escapeString($obCurrencyVo->vcurrency_symbol),
                                                                                     'nexchange_price'                       =>  generalMethods::escapeString($obCurrencyVo->nexchange_price),
                                                                                     'vactive'       =>  generalMethods::escapeString($obCurrencyVo->vactive)
                                                                                ));
         if($currencyId) {
            $objResult->status                  =    SUCCESS;
            $objResult->data                    =    $currencyId;
         }else{
             $objResult->status                 =    ERROR;
         }

         return $objResult;
    }
    
    
    
}
?>
