public function bdPaygate_actionSave(XenResource_DataWriter_Resource $dw) { $input = $this->_input->filter(array('bdpaygate_price' => XenForo_Input::UNUM, 'bdpaygate_currency' => XenForo_Input::STRING, 'file_hash' => XenForo_Input::STRING)); if (!empty($input['file_hash'])) { $dw->getVersionDw()->setExtraData(XenResource_DataWriter_Version::DATA_ATTACHMENT_HASH, $input['file_hash']); } if (!empty($input['bdpaygate_price']) or !empty($input['bdpaygate_currency'])) { $dw->set('price', $input['bdpaygate_price']); $dw->set('currency', $input['bdpaygate_currency']); } unset($GLOBALS[bdPaygate_Constant::GLOBALS_XFRM_CONTROLLERPUBLIC_RESOURCE_SAVE]); }