ILIAS  eassessment Revision 61809
 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.

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 15 of file class.ilBMFSettings.php.

Member Function Documentation

ilBMFSettings::clearAll ( )

Clears the payment settings for the bmf payment method.

public

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

References getSettingsId().

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

+ Here is the call graph for this function:

ilBMFSettings::fetchSettingsId ( )
private

Fetches and sets the primary key of the payment settings.

private

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

References $row, and setSettingsId().

Referenced by getSettings().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilBMFSettings::getAll ( )

Returns array of all bmf settings.

public

Returns
array $values Array of all bmf settings

Definition at line 219 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 144 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 200 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 192 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 136 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 184 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 152 of file class.ilBMFSettings.php.

References $haushaltsstelle.

Referenced by getAll(), and save().

+ Here is the caller graph for this function:

static ilBMFSettings::getInstance ( )
static
ilBMFSettings::getKennzeichenMahnverfahren ( )

Definition at line 168 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 160 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 69 of file class.ilBMFSettings.php.

References $data, $res, fetchSettingsId(), getSettingsId(), setBewirtschafterNr(), setCaCertificate(), setClientCertificate(), setClientId(), setEpaymentServer(), setHaushaltsstelle(), setKennzeichenMahnverfahren(), setObjectId(), setTimeout(), and setWaehrungsKennzeichen().

Referenced by ilBMFSettings().

{
$this->fetchSettingsId();
$res = $this->db->queryf('
SELECT bmf FROM payment_settings
WHERE settings_id = %s',
array('integer'),
array($this->getSettingsId())
);
$result = $this->db->fetchObject($res);
$data = array();
if (is_object($result))
{
if ($result->bmf != "")
{
$data = unserialize($result->bmf);
}
else
{
$data = array();
}
}
$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 128 of file class.ilBMFSettings.php.

References $settings_id.

Referenced by clearAll(), getSettings(), and save().

{
}

+ Here is the caller graph for this function:

ilBMFSettings::getTimeout ( )

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

References $timeout.

{
}
ilBMFSettings::getWaehrungsKennzeichen ( )

Definition at line 176 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 55 of file class.ilBMFSettings.php.

References $ilDB, and getSettings().

Referenced by getInstance().

{
global $ilDB;
$this->db = $ilDB;
$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 259 of file class.ilBMFSettings.php.

References $ilDB, getBewirtschafterNr(), getCaCertificate(), getClientCertificate(), getClientId(), getEpaymentServer(), getHaushaltsstelle(), getKennzeichenMahnverfahren(), getObjectId(), getSettingsId(), getWaehrungsKennzeichen(), and setSettingsId().

{
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()
);
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 140 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 196 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 188 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 132 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 180 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 148 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 164 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 156 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 124 of file class.ilBMFSettings.php.

Referenced by fetchSettingsId(), and save().

{
$this->settings_id = $a_settings_id;
}

+ Here is the caller graph for this function:

ilBMFSettings::setTimeout (   $a_timeout)

Definition at line 204 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 172 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 22 of file class.ilBMFSettings.php.

Referenced by getBewirtschafterNr().

ilBMFSettings::$ca_certificate
private

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

Referenced by getCaCertificate().

ilBMFSettings::$client_certificate
private

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

Referenced by getClientCertificate().

ilBMFSettings::$client_id
private

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

Referenced by getClientId().

ilBMFSettings::$db
private

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

ilBMFSettings::$epayment_server
private

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

Referenced by getEpaymentServer().

ilBMFSettings::$haushaltsstelle
private

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

Referenced by getHaushaltsstelle().

ilBMFSettings::$instance = null
staticprivate

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

Referenced by getInstance().

ilBMFSettings::$kennzeichen_mahnverfahren
private

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

Referenced by getKennzeichenMahnverfahren().

ilBMFSettings::$object_id
private

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

Referenced by getObjectId().

ilBMFSettings::$settings_id
private

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

Referenced by getSettingsId().

ilBMFSettings::$timeout
private

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

Referenced by getTimeout().

ilBMFSettings::$waehrungs_kennzeichen
private

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

Referenced by getWaehrungsKennzeichen().


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