Class Profile

Description

Base class for PayPal Profiles, managaes interaction with handlers, etc.

  • abstract:

Located in /PayPal/Profile.php (line 20)


	
			
Direct descendents
Class Description
APIProfile Stores API Profile information used for performing transactions on the PayPal API
EWPProfile Stores EWP Profile information used for encrypting buttons and PayPal forms.
Variable Summary
Method Summary
Profile Profile (string $id, object An &$handler)
string getEnvironment ()
void getID ()
void getInstance (mixed $id, mixed &$handler)
mixed loadEnvironments ()
mixed save ()
void setEnvironment (string $environment)
Variables
mixed $_environment (line 29)

Which environment should API calls be made against?

mixed $_handler (line 44)

The ProfileHandler instance associated with this Profile.

  • access: protected
mixed $_validEnvironments = array() (line 37)

The list of valid environments that API calls can be executed against.

  • access: protected
Methods
Constructor Profile (line 54)

Base constructor which creates a default handler if none was provided.

Profile Profile (string $id, object An &$handler)
  • string $id: The name of the profile
  • object An &$handler: optional handler to store the profile in
getEnvironment (line 198)

Get the environment associated with the profile.

  • return: The environment associated with the profile.
string getEnvironment ()
getID (line 100)
void getID ()
getInstance (line 105)
void getInstance (mixed $id, mixed &$handler)

Redefined in descendants as:
getValidEnvironments (line 208)

Returns an array of valid Environments

  • return: An array of valid environment names
array getValidEnvironments ()
loadEnvironments (line 115)

Loads the environment names from the endpoint map.

  • return: True on success or a PayPal error object on failure
mixed loadEnvironments ()
save (line 142)

Saves the profile data to the defined handler.

  • return: true on success or a PayPal_Error object on failure
  • final:
mixed save ()
setEnvironment (line 176)

Set the environment associated with this profile.

void setEnvironment (string $environment)
  • string $environment: True on success, a Paypal error object on failure
_getSerializeList (line 166)

Returns an array of member variables names which should be included when storing the profile.

  • return: An array of member variable names which should be included
  • access: protected
array _getSerializeList ()

Redefined in descendants as:

Documentation generated on Thu, 23 Jun 2005 13:27:50 -0400 by phpDocumentor 1.2.3