ILIAS
Release_4_0_x_branch Revision 61816
|
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 51 of file class.ilShopVats.php.
References $ilDB, $lng, and read().
ilShopVats::delete | ( | ) |
Deletes an existing vat dataset.
public
ilShopException |
Definition at line 179 of file class.ilShopVats.php.
References $id, $result, $row, $title, and getId().
ilShopVats::getId | ( | ) |
ilShopVats::getRate | ( | ) |
Definition at line 255 of file class.ilShopVats.php.
References $rate.
Referenced by ilPurchaseBillGUI\__addBookings(), ilPurchaseBMFGUI\__addBookings(), ilPaymentShoppingCartGUI\addBookings(), ilShopShoppingCartGUI\addBookings(), ilPaymentShoppingCart\getShoppingCart(), save(), ilPaymentStatisticGUI\saveCustomer(), ilObjPaymentSettingsGUI\saveCustomerObject(), and update().
ilShopVats::getTitle | ( | ) |
Definition at line 221 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 71 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 102 of file class.ilShopVats.php.
References read().
ilShopVats::save | ( | ) |
Saves a new vat dataset.
public
ilShopException |
Definition at line 148 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 232 of file class.ilShopVats.php.
ilShopVats::setRate | ( | $a_rate | ) |
Setter for the vat rate.
public
float | $a_rate |
Definition at line 249 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::setTitle | ( | $a_title | ) |
Setter for the title.
public string $a_title
Definition at line 215 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::update | ( | ) |
Updates an existing vat dataset.
public
ilShopException |
Definition at line 116 of file class.ilShopVats.php.
References ilShopVatsList\_isVATAlreadyCreated(), getId(), getRate(), and getTitle().
|
private |
Definition at line 40 of file class.ilShopVats.php.
|
private |
Definition at line 42 of file class.ilShopVats.php.
Referenced by getRate().
|
private |
Definition at line 41 of file class.ilShopVats.php.
Referenced by delete(), and getTitle().