A 
		
				
			
		account8226
Guest
Hello,
 
I would like to create my add-on which would upgrade a user when he do something.
 
But I don't get how to use this :
 
What do I have to add into these var :
I don't get the use of this upgrade array.
 
Best regards.
				
			I would like to create my add-on which would upgrade a user when he do something.
But I don't get how to use this :
public function upgradeUser($userId, array $upgrade, $allowInsertUnpurchasable = false, $endDate = null)
What do I have to add into these var :
- array $upgrade
- $allowInsertUnpurchasable
- $endDate (I want upgrade to last forever)
I don't get the use of this upgrade array.
Best regards.
 
 
		 
 
		 
 
		