Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <?php
  2.  
  3. defined( '_JEXEC' ) or die( 'Restricted access' );
  4.  
  5. if (!class_exists('vmCalculationPlugin')) require(JPATH_VM_PLUGINS.DS.'vmcalculationplugin.php');
  6.  
  7. abstract class testowa extends vmCalculationPlugin {
  8.  
  9.  
  10. function __construct(& $subject, $config) {
  11.  
  12. parent::__construct($subject, $config);
  13.  
  14. $this->_tablepkey = 'virtuemart_calc_id';
  15. $this->_tablename = '#__virtuemart_calc_plg_'. $this->_name;
  16. // $this->_tablename = '#__virtuemart_calc_' . $this->_name;
  17. }
  18.  
  19. /* protected function storePluginInternalDataCalc(&$data){
  20.  
  21. // vmdebug('plgVmStorePluginInternalDataCalc $data',$data);
  22. // parent::plgVmOnStoreInstallPluginTable($this->_psType);
  23. $this->storePluginInternalData($data);
  24. }
  25. */
  26. protected function getPluginInternalDataCalc(&$calcData){
  27.  
  28. $datas = $this->getPluginInternalData($calcData->virtuemart_calc_id,'virtuemart_calc_id');
  29.  
  30. // vmdebug('getPluginInternalDataCalc',$datas);
  31. if($datas){
  32. $attribsCalc = get_object_vars($datas);
  33.  
  34. unset($attribsCalc['virtuemart_calc_id']);
  35. foreach($attribsCalc as $k=>$v){
  36. $calcData->$k = $v;
  37. }
  38. }
  39.  
  40. }
  41.  
  42. /* protected function plgVmAddMathOp(&$entryPoints){
  43.  
  44. return ;
  45. }
  46. */
  47. /* protected function plgVmOnDisplayEdit(&$calc){
  48. return $html;
  49. }*/
  50.  
  51. protected function plgVmInGatherEffectRulesProduct(&$calculationHelper,&$rules){
  52. foreach ($rules as $i => $rule) {
  53. $ruleData = $this -> getPluginInternalData($rule['virtuemart_calc_id'],'virtuemart_calc_id');
  54. }
  55.  
  56. $this->dupa = &$calculationHelper->_amount;
  57. return false;
  58. }
  59.  
  60. protected function plgVmInGatherEffectRulesBill(&$calculationHelper,&$rules){
  61.  
  62. return false;
  63. }
  64.  
  65.  
  66.  
  67. }
  68.  
  69.  
  70. echo '<p>DUPA </p>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement