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

Public Member Functions

 setSettingsId ($a_settings_id=0)
 getSettingsId ()
 setClientId ($a_client_id)
 getClientId ()
 setBewirtschafterNr ($a_bewirtschafter_nr)
 getBewirtschafterNr ()
 setHaushaltsstelle ($a_haushaltsstelle)
 getHaushaltsstelle ()
 setObjectId ($a_object_id)
 getObjectId ()
 setKennzeichenMahnverfahren ($a_kennzeichen_mahnverfahren)
 getKennzeichenMahnverfahren ()
 setWaehrungsKennzeichen ($a_waehrungs_kennzeichen)
 getWaehrungsKennzeichen ()
 setEpaymentServer ($a_epayment_server)
 getEpaymentServer ()
 setClientCertificate ($a_client_certificate)
 getClientCertificate ()
 setCaCertificate ($a_ca_certificate)
 getCaCertificate ()
 setTimeout ($a_timeout)
 getTimeout ()
 getAll ()
 Returns array of all bmf settings.
 clearAll ()
 Clears the payment settings for the bmf payment method.
 save ()
 Inserts or updates (if payment settings already exist) the bmf settings data.

Static Public Member Functions

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

Data Fields

 $pSettings

Private Member Functions

 ilBMFSettings ()
 Constructor.
 getSettings ()
 Called from constructor to fetch settings from database.
 fetchSettingsId ()
 Fetches and sets the primary key of the payment settings.

Private Attributes

 $db
 $settings_id
 $client_id
 $bewirtschafter_nr
 $haushaltsstelle
 $object_id
 $kennzeichen_mahnverfahren
 $waehrungs_kennzeichen
 $epayment_server
 $client_certificate
 $ca_certificate
 $timeout

Static Private Attributes

static $instance = null

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 16 of file class.ilBMFSettings.php.

Member Function Documentation

ilBMFSettings::clearAll ( )

Clears the payment settings for the bmf payment method.

public

Definition at line 227 of file class.ilBMFSettings.php.

{
$this->pSettings->set('bmf', NULL, 'bmf');
// $statement = $this->db->manipulateF('
// UPDATE payment_settings
// SET bmf = %s
// WHERE settings_id = %s',
// array('text', 'integer'),
// array('NULL', $this->getSettingsId())
// );
}
ilBMFSettings::fetchSettingsId ( )
private

Fetches and sets the primary key of the payment settings.

private

Definition at line 99 of file class.ilBMFSettings.php.

{
// $result = $this->db->query('SELECT settings_id FROM payment_settings');
//
// while($row = $this->db->fetchObject($result))
// {
// $this->setSettingsId($row->settings_id);
// }
}
ilBMFSettings::getAll ( )

Returns array of all bmf settings.

public

Returns
array $values Array of all bmf settings

Definition at line 204 of file class.ilBMFSettings.php.

References getBewirtschafterNr(), getCaCertificate(), getClientCertificate(), getClientId(), getEpaymentServer(), getHaushaltsstelle(), getKennzeichenMahnverfahren(), getObjectId(), and getWaehrungsKennzeichen().

{
$values = array(
"mandantNr" => $this->getClientId(),
"bewirtschafterNr" => $this->getBewirtschafterNr(),
"haushaltsstelle" => $this->getHaushaltsstelle(),
"objektNr" => $this->getObjectId(),
"kennzeichenMahnverfahren" => $this->getKennzeichenMahnverfahren(),
"waehrungskennzeichen" => $this->getWaehrungsKennzeichen(),
"ePaymentServer" => $this->getEpaymentServer(),
"clientCertificate" => $this->getClientCertificate(),
"caCertificate" => $this->getCaCertificate(),
"timeOut" => $this->getTimeOut()
);
return $values;
}

+ Here is the call graph for this function:

ilBMFSettings::getBewirtschafterNr ( )

Definition at line 129 of file class.ilBMFSettings.php.

References $bewirtschafter_nr.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

ilBMFSettings::getCaCertificate ( )

Definition at line 185 of file class.ilBMFSettings.php.

References $ca_certificate.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilBMFSettings::getClientCertificate ( )

Definition at line 177 of file class.ilBMFSettings.php.

References $client_certificate.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

ilBMFSettings::getClientId ( )

Definition at line 121 of file class.ilBMFSettings.php.

References $client_id.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilBMFSettings::getEpaymentServer ( )

Definition at line 169 of file class.ilBMFSettings.php.

References $epayment_server.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

ilBMFSettings::getHaushaltsstelle ( )

Definition at line 137 of file class.ilBMFSettings.php.

References $haushaltsstelle.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

static ilBMFSettings::getInstance ( )
static

Static method to get the singleton instance.

public

Returns
object $instance Singular ilBMFSettings instance

Definition at line 42 of file class.ilBMFSettings.php.

References $instance, and ilBMFSettings().

Referenced by LastschriftWS\abbuchenOhneEinzugsermaechtigung(), KundenstammdatenPflegeWS\anlegenKunde(), Buchung\Buchung(), BuchungsListe\BuchungsListe(), KreditkartenzahlungWS\KreditkartenzahlungWS(), KundenstammdatenPflegeWS\KundenstammdatenPflegeWS(), LastschriftWS\LastschriftWS(), KreditkartenzahlungWS\validierenKreditkarte(), and KreditkartenzahlungWS\zahlenUndAnlegenKunde().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilBMFSettings::getKennzeichenMahnverfahren ( )

Definition at line 153 of file class.ilBMFSettings.php.

References $kennzeichen_mahnverfahren.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

ilBMFSettings::getObjectId ( )

Definition at line 145 of file class.ilBMFSettings.php.

References $object_id.

Referenced by getAll(), and save().

{
}

+ Here is the caller graph for this function:

ilBMFSettings::getSettings ( )
private

Called from constructor to fetch settings from database.

private

Definition at line 71 of file class.ilBMFSettings.php.

References setBewirtschafterNr(), setCaCertificate(), setClientCertificate(), setClientId(), setEpaymentServer(), setHaushaltsstelle(), setKennzeichenMahnverfahren(), setObjectId(), setTimeout(), and setWaehrungsKennzeichen().

Referenced by ilBMFSettings().

{
$result_bmf = NULL;
$result_bmf = $this->pSettings->get('bmf');
$data = array();
if ($result_bmf != "" && $result_bmf != NULL)
{
$data = unserialize($result_bmf);
}
$this->setClientId($data["mandantNr"]);
$this->setBewirtschafterNr($data["bewirtschafterNr"]);
$this->setHaushaltsstelle($data["haushaltsstelle"]);
$this->setObjectId($data["objektNr"]);
$this->setKennzeichenMahnverfahren($data["kennzeichenMahnverfahren"]);
$this->setWaehrungsKennzeichen($data["waehrungskennzeichen"]);
$this->setEpaymentServer($data["ePaymentServer"]);
$this->setClientCertificate($data["clientCertificate"]);
$this->setCaCertificate($data["caCertificate"]);
$this->setTimeout($data["timeOut"]);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilBMFSettings::getSettingsId ( )

Definition at line 113 of file class.ilBMFSettings.php.

{
// return $this->settings_id;
}
ilBMFSettings::getTimeout ( )

Definition at line 193 of file class.ilBMFSettings.php.

References $timeout.

{
}
ilBMFSettings::getWaehrungsKennzeichen ( )

Definition at line 161 of file class.ilBMFSettings.php.

References $waehrungs_kennzeichen.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

ilBMFSettings::ilBMFSettings ( )
private

Constructor.

private

Definition at line 57 of file class.ilBMFSettings.php.

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

Referenced by getInstance().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilBMFSettings::save ( )

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

public

Definition at line 245 of file class.ilBMFSettings.php.

References getBewirtschafterNr(), getCaCertificate(), getClientCertificate(), getClientId(), getEpaymentServer(), getHaushaltsstelle(), getKennzeichenMahnverfahren(), getObjectId(), and getWaehrungsKennzeichen().

{
global $ilDB;
$values = array(
"mandantNr" => $this->getClientId(),
"bewirtschafterNr" => $this->getBewirtschafterNr(),
"haushaltsstelle" => $this->getHaushaltsstelle(),
"objektNr" => $this->getObjectId(),
"kennzeichenMahnverfahren" => $this->getKennzeichenMahnverfahren(),
"waehrungskennzeichen" => $this->getWaehrungsKennzeichen(),
"ePaymentServer" => $this->getEpaymentServer(),
"clientCertificate" => $this->getClientCertificate(),
"caCertificate" => $this->getCaCertificate(),
"timeOut" => $this->getTimeOut()
);
$this->pSettings->set('bmf',serialize($values), 'bmf');
// if ($this->getSettingsId())
// {
//
// $statement = $this->db->manipulateF('
// UPDATE payment_settings
// SET bmf = %s
// WHERE settings_id = %s',
// array('text', 'integer'),
// array(serialize($values), $this->getSettingsId())
// );
// }
// else
// {
// $next_id = $ilDB->nextId('payment_settings');
// $statement = $this->db->manipulateF('
// INSERT into payment_settings
// ( settings_id,
// bmf)
// VALUES (%s, %s)',
// array('integer','text'),
// array($next_id, serialize($values))
// );
//
// $this->setSettingsId($next_id);
//
// }
}

+ Here is the call graph for this function:

ilBMFSettings::setBewirtschafterNr (   $a_bewirtschafter_nr)

Definition at line 125 of file class.ilBMFSettings.php.

Referenced by getSettings().

{
$this->bewirtschafter_nr = $a_bewirtschafter_nr;
}

+ Here is the caller graph for this function:

ilBMFSettings::setCaCertificate (   $a_ca_certificate)

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

Referenced by getSettings().

{
$this->ca_certificate = $a_ca_certificate;
}

+ Here is the caller graph for this function:

ilBMFSettings::setClientCertificate (   $a_client_certificate)

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

Referenced by getSettings().

{
$this->client_certificate = $a_client_certificate;
}

+ Here is the caller graph for this function:

ilBMFSettings::setClientId (   $a_client_id)

Definition at line 117 of file class.ilBMFSettings.php.

Referenced by getSettings().

{
$this->client_id = $a_client_id;
}

+ Here is the caller graph for this function:

ilBMFSettings::setEpaymentServer (   $a_epayment_server)

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

Referenced by getSettings().

{
$this->epayment_server = $a_epayment_server;
}

+ Here is the caller graph for this function:

ilBMFSettings::setHaushaltsstelle (   $a_haushaltsstelle)

Definition at line 133 of file class.ilBMFSettings.php.

Referenced by getSettings().

{
$this->haushaltsstelle = $a_haushaltsstelle;
}

+ Here is the caller graph for this function:

ilBMFSettings::setKennzeichenMahnverfahren (   $a_kennzeichen_mahnverfahren)

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

Referenced by getSettings().

{
$this->kennzeichen_mahnverfahren = $a_kennzeichen_mahnverfahren;
}

+ Here is the caller graph for this function:

ilBMFSettings::setObjectId (   $a_object_id)

Definition at line 141 of file class.ilBMFSettings.php.

Referenced by getSettings().

{
$this->object_id = $a_object_id;
}

+ Here is the caller graph for this function:

ilBMFSettings::setSettingsId (   $a_settings_id = 0)

Definition at line 109 of file class.ilBMFSettings.php.

{
// $this->settings_id = $a_settings_id;
}
ilBMFSettings::setTimeout (   $a_timeout)

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

Referenced by getSettings().

{
$this->timeout = $a_timeout;
}

+ Here is the caller graph for this function:

ilBMFSettings::setWaehrungsKennzeichen (   $a_waehrungs_kennzeichen)

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

Referenced by getSettings().

{
$this->waehrungs_kennzeichen = $a_waehrungs_kennzeichen;
}

+ Here is the caller graph for this function:

Field Documentation

ilBMFSettings::$bewirtschafter_nr
private

Definition at line 24 of file class.ilBMFSettings.php.

Referenced by getBewirtschafterNr().

ilBMFSettings::$ca_certificate
private

Definition at line 31 of file class.ilBMFSettings.php.

Referenced by getCaCertificate().

ilBMFSettings::$client_certificate
private

Definition at line 30 of file class.ilBMFSettings.php.

Referenced by getClientCertificate().

ilBMFSettings::$client_id
private

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

Referenced by getClientId().

ilBMFSettings::$db
private

Definition at line 18 of file class.ilBMFSettings.php.

ilBMFSettings::$epayment_server
private

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

Referenced by getEpaymentServer().

ilBMFSettings::$haushaltsstelle
private

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

Referenced by getHaushaltsstelle().

ilBMFSettings::$instance = null
staticprivate

Definition at line 34 of file class.ilBMFSettings.php.

Referenced by getInstance().

ilBMFSettings::$kennzeichen_mahnverfahren
private

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

Referenced by getKennzeichenMahnverfahren().

ilBMFSettings::$object_id
private

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

Referenced by getObjectId().

ilBMFSettings::$pSettings

Definition at line 19 of file class.ilBMFSettings.php.

ilBMFSettings::$settings_id
private

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

ilBMFSettings::$timeout
private

Definition at line 32 of file class.ilBMFSettings.php.

Referenced by getTimeout().

ilBMFSettings::$waehrungs_kennzeichen
private

Definition at line 28 of file class.ilBMFSettings.php.

Referenced by getWaehrungsKennzeichen().


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