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.
Get all Subscriptions of the user-
function getSubscriptions($status=NULL)
$status - Subscription Status
return User's subscription whose Status is $status. If $status equals to NULL, it returns all subscriptions of user.
Get Joomla Usertype of the User-
function getUsertype()
return Joomla UserType of the User.
Get Register Date of the User-
function getRegisterDate()
return Register Date of the User.
Set Address of User-
function setAddress($address =' ')
$address = String which is to be set as the address of the user.
This function is used to set the Address of the User.
Get Address of the User-
function getAddress()
return Address of the User.
Set State of the User-
function setState($state =' ')
$state = String which is to be set as the User's state.
This function set $state as the State of the User.
Get State of the User-
function getState()
return State of the User.
Set City of the User-
function setCity($city = ' ')
This function set $city as the City of the User.
Get City of the User-
function getCity()
return City of the User.
Set Country of the User-
function setCountry($country = ' ')
This function set $country as the Country of the User.
Get Country of the User-
function getCountry()
This function returns the Country of the User.
Set ZipCode for the User-
function setZipcode($zipcode = ' ')
This function set $zipcode as the ZipCode of the User.
Get ZipCode of the User-
function getZipcode()
This function returns ZipCode for the User.
Set value of a Preference Parameter for the User-
function setPreference($key, $value)
$key = Preference Parameter to be set.
$value = Value to be set for the $key.
This function assign $value to $key.
Get value of a Preference Parameter-
function getPreference($key = null, $default = false)
$key = Preference Parameter whose value to be retrieved.
$default = Default value of $key.
This function returns the value of $key.