Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
1,359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1.    //Paypalcontrol
  2.         $paypal = new paypal();
  3.         $paypal->setVariable = $variable;
  4.  
  5.         // Paypal
  6.         protected $variable;
  7.         public function setVariable($variable){
  8.             $this->variable = $variable;
  9.             // Deze lijn is niet veprlicht
  10.             return $this;
  11.         }
  12.         public function getVariable(){
  13.             return $this->variable;
  14.         }
  15.        
  16.         // Nu kun je in paypal.php dus jou variable aanspreken met
  17.         $this->getVariable() of $this->variable;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement