Changeset 10599 for trunk/modules/boonex/payment/classes/BxPmtModule.php
- Timestamp:
- 05/25/09 00:00:45 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/payment/classes/BxPmtModule.php
r10239 r10599 21 21 22 22 bx_import('BxDolModule'); 23 bx_import('BxDolAdminSettings'); 23 24 24 25 require_once( BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php' ); … … 241 242 242 243 244 /** 245 * 246 * Admin Settings Methods 247 * 248 */ 249 function getSettingsForm($mixedResult) { 250 $iId = (int)$this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Payment'"); 251 if(empty($iId)) 252 return MsgBox('_payment_msg_no_results'); 253 254 $oSettings = new BxDolAdminSettings($iId); 255 $sResult = $oSettings->getForm(); 256 257 if($mixedResult !== true && !empty($mixedResult)) 258 $sResult = $mixedResult . $sResult; 259 260 return $sResult; 261 } 262 function setSettings($aData) { 263 $iId = (int)$this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Payment'"); 264 if(empty($iId)) 265 return MsgBox(_t('_payment_err_wrong_data')); 266 267 $oSettings = new BxDolAdminSettings($iId); 268 return $oSettings->saveChanges($_POST); 269 } 270 243 271 244 272 /**
Note: See TracChangeset
for help on using the changeset viewer.