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

Public Member Functions

 ilPaymentBillVendor ($a_pobject_id)
 Constructor public.
 getMessage ()
 setMessage ($a_message)
 appendMessage ($a_message)
 delete ()
 getPobjectId ()
 hasData ()
 setGender ($a_gender)
 getGender ()
 setFirstname ($a_firstname)
 getFirstname ()
 setLastname ($a_lastname)
 getLastname ()
 getTitle ()
 setTitle ($a_title)
 getInstitution ()
 setInstitution ($a_institution)
 getDepartment ()
 setDepartment ($a_department)
 getStreet ()
 setStreet ($a_street)
 getZipcode ()
 setZipcode ($a_zipcode)
 getCity ()
 setCity ($a_city)
 getCountry ()
 setCountry ($a_country)
 getPhone ()
 setPhone ($a_phone)
 getFax ()
 setFax ($a_fax)
 getEmail ()
 setEmail ($a_email)
 getAccountNumber ()
 setAccountNumber ($a_account_number)
 getBankcode ()
 setBankcode ($a_bankcode)
 getIban ()
 setIban ($a_iban)
 getBic ()
 setBic ($a_bic)
 getBankname ()
 setBankname ($a_bankname)
 validate ()
 update ()
 __read ()

Data Fields

 $db = null
 $lang = null
 $pobject_id = null
 $has_data = false

Detailed Description

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

Member Function Documentation

ilPaymentBillVendor::__read ( )

Definition at line 368 of file class.ilPaymentBillVendor.php.

References $res, $row, getPobjectId(), setAccountNumber(), setBankcode(), setBankname(), setBic(), setCity(), setCountry(), setDepartment(), setEmail(), setFax(), setFirstname(), setGender(), setIban(), setInstitution(), setLastname(), setPhone(), setStreet(), setTitle(), and setZipcode().

Referenced by ilPaymentBillVendor(), and update().

{
$res = $this->db->queryf('
SELECT * FROM payment_bill_vendor
WHERE pobject_id = %s',
array('integer'),
array($this->getPobjectId()));
while($row = $this->db->fetchObject($res))
{
$this->has_data = true;
$this->setGender($row->gender);
$this->setFirstname($row->firstname);
$this->setLastname($row->lastname);
$this->setTitle($row->title);
$this->setInstitution($row->institution);
$this->setDepartment($row->department);
$this->setStreet($row->street);
$this->setZipcode($row->zipcode);
$this->setCity($row->city);
$this->setCountry($row->country);
$this->setPhone($row->phone);
$this->setFax($row->fax);
$this->setEmail($row->email);
$this->setAccountNumber($row->account_number);
$this->setBankcode($row->bankcode);
$this->setIban($row->iban);
$this->setBic($row->bic);
$this->setBankname($row->bankname);
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentBillVendor::appendMessage (   $a_message)

Definition at line 67 of file class.ilPaymentBillVendor.php.

Referenced by validate().

{
$this->message .= "<br />".$a_message;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::delete ( )

Definition at line 72 of file class.ilPaymentBillVendor.php.

{
$statement = $this->db->manipulateF('
DELETE from payment_bill_vendor
WHERE pobject_id = %s',
array('integer'),
array($this->pobject_id));
return true;
}
ilPaymentBillVendor::getAccountNumber ( )

Definition at line 196 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->account_number;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getBankcode ( )

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

Referenced by update(), and validate().

{
return $this->bankcode;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getBankname ( )

Definition at line 228 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->bankname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getBic ( )

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

Referenced by update().

{
return $this->bic;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getCity ( )

Definition at line 156 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->city;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getCountry ( )

Definition at line 164 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->country;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getDepartment ( )

Definition at line 132 of file class.ilPaymentBillVendor.php.

Referenced by update().

{
return $this->department;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getEmail ( )

Definition at line 188 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->email;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getFax ( )

Definition at line 180 of file class.ilPaymentBillVendor.php.

Referenced by update().

{
return $this->fax;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getFirstname ( )

Definition at line 104 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->firstname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getGender ( )

Definition at line 96 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->gender;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getIban ( )

Definition at line 212 of file class.ilPaymentBillVendor.php.

Referenced by update().

{
return $this->iban;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getInstitution ( )

Definition at line 124 of file class.ilPaymentBillVendor.php.

Referenced by update().

{
return $this->institution;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getLastname ( )

Definition at line 112 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->lastname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getMessage ( )

Definition at line 59 of file class.ilPaymentBillVendor.php.

Referenced by validate().

{
return $this->message;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getPhone ( )

Definition at line 172 of file class.ilPaymentBillVendor.php.

Referenced by update().

{
return $this->phone;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getPobjectId ( )

Definition at line 84 of file class.ilPaymentBillVendor.php.

References $pobject_id.

Referenced by __read(), and update().

{
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getStreet ( )

Definition at line 140 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->street;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getTitle ( )

Definition at line 116 of file class.ilPaymentBillVendor.php.

References $title.

Referenced by update().

{
return $this->title;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::getZipcode ( )

Definition at line 148 of file class.ilPaymentBillVendor.php.

Referenced by update(), and validate().

{
return $this->zipcode;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::hasData ( )

Definition at line 88 of file class.ilPaymentBillVendor.php.

References $has_data.

Referenced by update().

{
return (bool) $this->has_data;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::ilPaymentBillVendor (   $a_pobject_id)

Constructor public.

Definition at line 47 of file class.ilPaymentBillVendor.php.

References $ilDB, $lng, and __read().

{
global $ilDB,$lng;
$this->db =& $ilDB;
$this->lng =& $lng;
$this->pobject_id = $a_pobject_id;
$this->__read();
}

+ Here is the call graph for this function:

ilPaymentBillVendor::setAccountNumber (   $a_account_number)

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

Referenced by __read().

{
$this->account_number = $a_account_number;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setBankcode (   $a_bankcode)

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

Referenced by __read().

{
$this->bankcode = $a_bankcode;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setBankname (   $a_bankname)

Definition at line 232 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->bankname = $a_bankname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setBic (   $a_bic)

Definition at line 224 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->bic = $a_bic;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setCity (   $a_city)

Definition at line 160 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->city = $a_city;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setCountry (   $a_country)

Definition at line 168 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->country = $a_country;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setDepartment (   $a_department)

Definition at line 136 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->department = $a_department;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setEmail (   $a_email)

Definition at line 192 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->email = $a_email;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setFax (   $a_fax)

Definition at line 184 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->fax = $a_fax;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setFirstname (   $a_firstname)

Definition at line 100 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->firstname = $a_firstname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setGender (   $a_gender)

Definition at line 92 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->gender = $a_gender;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setIban (   $a_iban)

Definition at line 216 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->iban = $a_iban;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setInstitution (   $a_institution)

Definition at line 128 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->institution = $a_institution;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setLastname (   $a_lastname)

Definition at line 108 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->lastname = $a_lastname;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setMessage (   $a_message)

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

Referenced by validate().

{
$this->message = $a_message;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setPhone (   $a_phone)

Definition at line 176 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->phone = $a_phone;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setStreet (   $a_street)

Definition at line 144 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->street = $a_street;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setTitle (   $a_title)

Definition at line 120 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->title = $a_title;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::setZipcode (   $a_zipcode)

Definition at line 152 of file class.ilPaymentBillVendor.php.

Referenced by __read().

{
$this->zipcode = $a_zipcode;
}

+ Here is the caller graph for this function:

ilPaymentBillVendor::update ( )

Definition at line 288 of file class.ilPaymentBillVendor.php.

References __read(), getAccountNumber(), getBankcode(), getBankname(), getBic(), getCity(), getCountry(), getDepartment(), getEmail(), getFax(), getFirstname(), getGender(), getIban(), getInstitution(), getLastname(), getPhone(), getPobjectId(), getStreet(), getTitle(), getZipcode(), and hasData().

{
if(!$this->hasData())
{
$statement = $this->db->manipulateF('
INSERT INTO payment_bill_vendor
(pobject_id)
VALUES(%s)',
array('integer'),
array($this->getPobjectId())
);
}
$statement = $this->db->manipulateF('
UPDATE payment_bill_vendor
SET gender = %s,
firstname = %s,
lastname = %s,
title = %s,
institution = %s,
department = %s,
street = %s,
zipcode = %s,
city = %s,
country = %s,
phone = %s,
fax = %s,
email = %s,
account_number = %s,
bankcode = %s,
iban = %s,
bic = %s,
bankname = %s
WHERE pobject_id = %s',
array( 'integer',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text',
'text'),
array(
$this->getGender(),
$this->getFirstname(),
$this->getLastname(),
$this->getTitle(),
$this->getInstitution(),
$this->getDepartment(),
$this->getStreet(),
$this->getZipcode(),
$this->getCity(),
$this->getCountry(),
$this->getPhone(),
$this->getFax(),
$this->getEmail(),
$this->getAccountNumber(),
$this->getBankcode(),
$this->getIban(),
$this->getBic(),
$this->getBankname(),
$this->getPobjectId()
)
);
$this->__read();
}

+ Here is the call graph for this function:

ilPaymentBillVendor::validate ( )

Definition at line 237 of file class.ilPaymentBillVendor.php.

References appendMessage(), getAccountNumber(), getBankcode(), getBankname(), getCity(), getCountry(), getEmail(), getFirstname(), getGender(), getLastname(), getMessage(), getStreet(), getZipcode(), and setMessage().

{
$this->setMessage('');
if(!$this->getGender())
{
$this->appendMessage($this->lng->txt('gender'));
}
if(!$this->getFirstname())
{
$this->appendMessage($this->lng->txt('firstname'));
}
if(!$this->getLastname())
{
$this->appendMessage($this->lng->txt('lastname'));
}
if(!$this->getStreet())
{
$this->appendMessage($this->lng->txt('street'));
}
if(!$this->getZipcode())
{
$this->appendMessage($this->lng->txt('zipcode'));
}
if(!$this->getCity())
{
$this->appendMessage($this->lng->txt('city'));
}
if(!$this->getCountry())
{
$this->appendMessage($this->lng->txt('country'));
}
if(!$this->getEmail())
{
$this->appendMessage($this->lng->txt('email'));
}
if(!$this->getAccountNumber())
{
$this->appendMessage($this->lng->txt('account_number'));
}
if(!$this->getBankcode())
{
$this->appendMessage($this->lng->txt('bankcode'));
}
if(!$this->getBankname())
{
$this->appendMessage($this->lng->txt('bankname'));
}
return $this->getMessage() ? false : true;
}

+ Here is the call graph for this function:

Field Documentation

ilPaymentBillVendor::$db = null

Definition at line 36 of file class.ilPaymentBillVendor.php.

ilPaymentBillVendor::$has_data = false

Definition at line 40 of file class.ilPaymentBillVendor.php.

Referenced by hasData().

ilPaymentBillVendor::$lang = null

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

ilPaymentBillVendor::$pobject_id = null

Definition at line 38 of file class.ilPaymentBillVendor.php.

Referenced by getPobjectId().


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