ILIAS
eassessment Revision 61809
|
Class ilShopVats. More...
Public Member Functions | |
__construct ($a_vat_id=0) | |
Constructor. | |
reloadFromDatabase () | |
Public interface to reload the capsuled data of a vat from database. | |
update () | |
Updates an existing vat dataset. | |
save () | |
Saves a new vat dataset. | |
delete () | |
Deletes an existing vat dataset. | |
setTitle ($a_title) | |
Setter for the title. | |
getTitle () | |
setId ($a_id) | |
Setter for the id. | |
getId () | |
setRate ($a_rate) | |
Setter for the vat rate. | |
getRate () |
Private Member Functions | |
read () | |
Fetches the data of a vat dataset from database. |
Private Attributes | |
$id = 0 | |
$title = '' | |
$rate = 0 |
ilShopVats::__construct | ( | $a_vat_id = 0 | ) |
Constructor.
$a_vat_id | The primary key of a vat dataset. public |
Definition at line 30 of file class.ilShopVats.php.
References $ilDB, $lng, and read().
ilShopVats::delete | ( | ) |
Deletes an existing vat dataset.
public
ilShopException |
Definition at line 158 of file class.ilShopVats.php.
References $id, $row, $title, and getId().
ilShopVats::getId | ( | ) |
ilShopVats::getRate | ( | ) |
Definition at line 234 of file class.ilShopVats.php.
References $rate.
Referenced by ilShopShoppingCartGUI\addBookings(), ilPaymentShoppingCart\getShoppingCart(), save(), ilPaymentStatisticGUI\saveCustomer(), ilObjPaymentSettingsGUI\saveCustomerObject(), and update().
ilShopVats::getTitle | ( | ) |
Definition at line 200 of file class.ilShopVats.php.
References $title.
Referenced by save(), and update().
|
private |
Fetches the data of a vat dataset from database.
private
ilShopException |
Definition at line 50 of file class.ilShopVats.php.
References $res, $row, setRate(), and setTitle().
Referenced by __construct(), and reloadFromDatabase().
ilShopVats::reloadFromDatabase | ( | ) |
Public interface to reload the capsuled data of a vat from database.
Throws a ilShopException if the object property $this->id has no valid value (because $this->read() is called).
public
Definition at line 81 of file class.ilShopVats.php.
References read().
ilShopVats::save | ( | ) |
Saves a new vat dataset.
public
ilShopException |
Definition at line 127 of file class.ilShopVats.php.
References ilShopVatsList\_isVATAlreadyCreated(), getRate(), and getTitle().
ilShopVats::setId | ( | $a_id | ) |
Setter for the id.
public
int | $a_id |
Definition at line 211 of file class.ilShopVats.php.
ilShopVats::setRate | ( | $a_rate | ) |
Setter for the vat rate.
public
float | $a_rate |
Definition at line 228 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::setTitle | ( | $a_title | ) |
Setter for the title.
public string $a_title
Definition at line 194 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::update | ( | ) |
Updates an existing vat dataset.
public
ilShopException |
Definition at line 95 of file class.ilShopVats.php.
References ilShopVatsList\_isVATAlreadyCreated(), getId(), getRate(), and getTitle().
|
private |
Definition at line 19 of file class.ilShopVats.php.
|
private |
Definition at line 21 of file class.ilShopVats.php.
Referenced by getRate().
|
private |
Definition at line 20 of file class.ilShopVats.php.
Referenced by delete(), and getTitle().