Support > Documentation > PayplansUser

PayplansUser


Using PayPlansUser Object, you can get all information about user from the User entity.

Get all Plans subscribed by the User

function getPlans() :- return all Plans subscribed by the User for which the Subscription-Status is Active.

Set/Get user information

public function getRealname() :- Return name of the user.

public function getUsername():-  Return Username of user.

public function getEmail():- Return e-mail address of user.

public function getUsertype():- Return Joomla usertype

public function getRegisterDate():- Return the Registered date of user.

public function getLastvisitDate():- Return last visit date of user.

public function getAddress():- Return address of the user.

public function getState() :- Return the state of the user.

public function getCity() :- Return the city of the user.

public function getCountry() :- Return the country of the user.

public function getZipcode() :- Return the zip-code of user

public function setAddress($address =''):- This will set $address as the address of user in payplan user table.

public function setState($state =''):- This will set $state as the state of user.

public function setCity($city = '') :-This will set $city as the city of user.

public function setCountry($country = '') :-This will set $country as the country of user.

public function setZipcode($zipcode = ''):- This will set $zipcode as the zipcode of user.

Get all Subscriptions of the user

function getSubscriptions($status=NULL)

param $status - Subscription Status

return User's subscription whose Status is $status. If $status equals to NULL, it returns all subscriptions of user.

Check if user is admin or not

public function isAdmin() :- Return True when the user is Super administrator,else return false.

Get the wallet balance

public function getWalletBalance() :-Return the balance available in the wallet.

Set/Get value of a Preference Parameter for the User

function setPreference($key, $value)

param $key = Preference Parameter to be set.

param $value = Value to be set for the $key.

This function assign $value to $key.

function getPreference($key = null, $default = false)

param $key = Preference Parameter whose value to be retrieved.

param $default = Default value of $key.

This function returns the value of $key.

  • Monday, 16 April 2012

Disqus Comments

blog comments powered by Disqus

PayPlans + Stackideas Pack!