ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPaypalSettings Class Reference
+ Collaboration diagram for ilPaypalSettings:

Public Member Functions

 setServerHost ($a_server_host)
 getServerHost ()
 setServerPath ($a_server_path)
 getServerPath ()
 setVendor ($a_vendor)
 getVendor ()
 setVendorPassword ($a_vendor_password)
 getVendorPassword ()
 setAuthToken ($a_auth_token)
 getAuthToken ()
 setPageStyle ($a_page_style)
 getPageStyle ()
 setSsl ($a_ssl)
 getSsl ()
 getAll ()
 Returns array of all paypal settings.
 clearAll ()
 Clears the payment settings for the paypal payment method.
 save ()
 Inserts or updates (if payment settings already exist) the paypal settings data.

Static Public Member Functions

static getInstance ()
 Static method to get the singleton instance.

Data Fields

 $pSettings

Private Member Functions

 __construct ()
 Constructor.
 getSettings ()
 Called from constructor to fetch settings from database.

Private Attributes

 $server_host
 $server_path
 $vendor
 $auth_token
 $page_style
 $ssl

Static Private Attributes

static $instance = null

Detailed Description

Author
Nadia Ahmad nahma.nosp@m.d@da.nosp@m.tabay.nosp@m..de
Jens Conze jc@da.nosp@m.taba.nosp@m.y.de
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
Id:
class.ilPaypalSettings.php 22133 2009-10-16 08:09:11Z nkrzywon

Definition at line 15 of file class.ilPaypalSettings.php.

Constructor & Destructor Documentation

ilPaypalSettings::__construct ( )
private

Constructor.

private

Definition at line 52 of file class.ilPaypalSettings.php.

References ilPaymentSettings\_getInstance(), and getSettings().

{
$this->pSettings = ilPaymentSettings::_getInstance();
$this->getSettings();
}

+ Here is the call graph for this function:

Member Function Documentation

ilPaypalSettings::clearAll ( )

Clears the payment settings for the paypal payment method.

public

Definition at line 220 of file class.ilPaypalSettings.php.

{
$this->pSettings->set('paypal', NULL, 'paypal');
// $this->settings = array();
}
ilPaypalSettings::getAll ( )

Returns array of all paypal settings.

public

Returns
array $values Array of all paypal settings

Definition at line 200 of file class.ilPaypalSettings.php.

References getAuthToken(), getPageStyle(), getServerHost(), getServerPath(), getSsl(), and getVendor().

{
$values = array(
"server_host" => $this->getServerHost(),
"server_path" => $this->getServerPath(),
"vendor" => $this->getVendor(),
// "vendor_password" => $this->getVendorPassword(),
"auth_token" => $this->getAuthToken(),
"page_style" => $this->getPageStyle(),
"ssl" => $this->getSsl()
);
return $values;
}

+ Here is the call graph for this function:

ilPaypalSettings::getAuthToken ( )
Returns
mixed

Definition at line 157 of file class.ilPaypalSettings.php.

References $auth_token.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

static ilPaypalSettings::getInstance ( )
static

Static method to get the singleton instance.

public

Returns
object $instance Singular ilPaypalSettings instance

Definition at line 37 of file class.ilPaypalSettings.php.

References $instance.

Referenced by ilPurchasePaypal\__construct(), ilShopShoppingCartGUI\__construct(), and ilObjPaymentSettingsGUI\savePaypalSettingsObject().

{
if (!self::$instance)
{
self::$instance = new ilPaypalSettings();
}
return self::$instance;
}

+ Here is the caller graph for this function:

ilPaypalSettings::getPageStyle ( )
Returns
mixed

Definition at line 173 of file class.ilPaypalSettings.php.

References $page_style.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilPaypalSettings::getServerHost ( )
Returns
mixed

Definition at line 94 of file class.ilPaypalSettings.php.

References $server_host.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilPaypalSettings::getServerPath ( )
Returns
mixed

Definition at line 110 of file class.ilPaypalSettings.php.

References $server_path.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilPaypalSettings::getSettings ( )
private

Called from constructor to fetch settings from database.

private

Definition at line 63 of file class.ilPaypalSettings.php.

References setAuthToken(), setPageStyle(), setServerHost(), setServerPath(), setSsl(), and setVendor().

Referenced by __construct().

{
$paypal = null;
$paypal = $this->pSettings->get('paypal');
$data = array();
if ($paypal != "" && $paypal != NULL )
{
$data = unserialize($paypal);
}
$this->setServerHost($data["server_host"]);
$this->setServerPath($data["server_path"]);
$this->setVendor($data["vendor"]);
// $this->setVendorPassword($data['vendor_password']);
$this->setAuthToken($data["auth_token"]);
$this->setPageStyle($data["page_style"]);
$this->setSsl($data["ssl"]);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaypalSettings::getSsl ( )
Returns
mixed

Definition at line 189 of file class.ilPaypalSettings.php.

References $ssl.

Referenced by getAll(), and save().

{
return $this->ssl;
}

+ Here is the caller graph for this function:

ilPaypalSettings::getVendor ( )
Returns
mixed

Definition at line 126 of file class.ilPaypalSettings.php.

References $vendor.

Referenced by getAll(), and save().

{
return $this->vendor;
}

+ Here is the caller graph for this function:

ilPaypalSettings::getVendorPassword ( )
Returns
mixed

Definition at line 142 of file class.ilPaypalSettings.php.

{
return $this->vender_password;
}
ilPaypalSettings::save ( )

Inserts or updates (if payment settings already exist) the paypal settings data.

public

Definition at line 231 of file class.ilPaypalSettings.php.

References getAuthToken(), getPageStyle(), getServerHost(), getServerPath(), getSsl(), and getVendor().

{
$values = array(
"server_host" => $this->getServerHost(),
"server_path" => $this->getServerPath(),
"vendor" => $this->getVendor(),
// "vendor_password" => $this->getVendorPassword(),
"auth_token" => $this->getAuthToken(),
"page_style" => $this->getPageStyle(),
"ssl" => $this->getSsl()
);
$this->pSettings->set('paypal', serialize($values), 'paypal');
}

+ Here is the call graph for this function:

ilPaypalSettings::setAuthToken (   $a_auth_token)
Parameters
string$a_auth_token

Definition at line 149 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->auth_token = $a_auth_token;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setPageStyle (   $a_page_style)
Parameters
string$a_page_style

Definition at line 165 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->page_style = $a_page_style;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setServerHost (   $a_server_host)
Parameters
string$a_server_host

Definition at line 86 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->server_host = $a_server_host;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setServerPath (   $a_server_path)
Parameters
string$a_server_path

Definition at line 102 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->server_path = $a_server_path;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setSsl (   $a_ssl)
Parameters
string$a_ssl

Definition at line 181 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->ssl = $a_ssl;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setVendor (   $a_vendor)
Parameters
string$a_vendor

Definition at line 118 of file class.ilPaypalSettings.php.

Referenced by getSettings().

{
$this->vendor = $a_vendor;
}

+ Here is the caller graph for this function:

ilPaypalSettings::setVendorPassword (   $a_vendor_password)
Parameters
string$a_vendor_password

Definition at line 134 of file class.ilPaypalSettings.php.

{
$this->vender_password = $a_vendor_password;
}

Field Documentation

ilPaypalSettings::$auth_token
private

Definition at line 25 of file class.ilPaypalSettings.php.

Referenced by getAuthToken().

ilPaypalSettings::$instance = null
staticprivate

Definition at line 29 of file class.ilPaypalSettings.php.

Referenced by getInstance().

ilPaypalSettings::$page_style
private

Definition at line 26 of file class.ilPaypalSettings.php.

Referenced by getPageStyle().

ilPaypalSettings::$pSettings

Definition at line 17 of file class.ilPaypalSettings.php.

ilPaypalSettings::$server_host
private

Definition at line 21 of file class.ilPaypalSettings.php.

Referenced by getServerHost().

ilPaypalSettings::$server_path
private

Definition at line 22 of file class.ilPaypalSettings.php.

Referenced by getServerPath().

ilPaypalSettings::$ssl
private

Definition at line 27 of file class.ilPaypalSettings.php.

Referenced by getSsl().

ilPaypalSettings::$vendor
private

Definition at line 23 of file class.ilPaypalSettings.php.

Referenced by getVendor().


The documentation for this class was generated from the following file: