ILIAS
Release_4_2_x_branch Revision 61807
|
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 () |
Static Public Member Functions | |
static | _readAllVats () |
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 29 of file class.ilShopVats.php.
References $ilDB, $lng, and read().
|
static |
Definition at line 238 of file class.ilShopVats.php.
References $ilDB, $res, and $row.
Referenced by ilObjPaymentSettingsGUI\checkShopActivationObject().
ilShopVats::delete | ( | ) |
Deletes an existing vat dataset.
public
ilShopException |
Definition at line 157 of file class.ilShopVats.php.
References $id, $result, $row, $title, and getId().
ilShopVats::getId | ( | ) |
ilShopVats::getRate | ( | ) |
Definition at line 233 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 199 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 49 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 80 of file class.ilShopVats.php.
References read().
ilShopVats::save | ( | ) |
Saves a new vat dataset.
public
ilShopException |
Definition at line 126 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 210 of file class.ilShopVats.php.
ilShopVats::setRate | ( | $a_rate | ) |
Setter for the vat rate.
public
float | $a_rate |
Definition at line 227 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::setTitle | ( | $a_title | ) |
Setter for the title.
public string $a_title
Definition at line 193 of file class.ilShopVats.php.
Referenced by read().
ilShopVats::update | ( | ) |
Updates an existing vat dataset.
public
ilShopException |
Definition at line 94 of file class.ilShopVats.php.
References ilShopVatsList\_isVATAlreadyCreated(), getId(), getRate(), and getTitle().
|
private |
Definition at line 18 of file class.ilShopVats.php.
|
private |
Definition at line 20 of file class.ilShopVats.php.
Referenced by getRate().
|
private |
Definition at line 19 of file class.ilShopVats.php.
Referenced by delete(), and getTitle().