Files
zurawik.pl/core/model/FkCurrency.class.php
2026-05-15 18:33:51 +02:00

161 lines
2.2 KiB
PHP

<?php
/**
* Model dla klasy FkCurrency
*
* @author ModGen
*/
class FkCurrency extends DataObject{
/**
* nazwa tabeli
*/
static $tableName = 'fk_currency';
/**
* nazwa klucza tabeli
*/
static $classTablePK = 'id_fk_currency';
/**
* nazwa klasy
*/
static $className = __CLASS__;
/**
* tablica mapująca pola klasy
*/
static $fields = array(
'code' => 'code',
'date_update' => 'dateUpdate',
'date_nbp' => 'dateNbp',
'id_fk_currency' => 'id',
'name' => 'name',
'value' => 'value'
);
private $code;
private $dateUpdate;
private $dateNbp;
protected $id;
private $name;
private $value;
// -- Konstruktor --
function __construct( $code = null, $dateUpdate = null, $id = -1 , $name = null, $value = 0){
$this->code = $code;
$this->dateUpdate = $dateUpdate;
$this->id = $id;
$this->name = $name;
$this->value = $value;
}
// -- Get-y i Set-y --
public function getCode(){
return $this->code;
}
public function setCode($code){
$this->code = $code;
}
public function getDateUpdate(){
return $this->dateUpdate;
}
public function setDateUpdate($dateUpdate){
$this->dateUpdate = $dateUpdate;
}
public function getDateNbp(){
return $this->dateNbp;
}
public function setDateNbp($dateNbp){
$this->dateNbp = $dateNbp;
}
public function getId(){
return $this->id;
}
public function setId($id){
$this->id = $id;
}
public function getName(){
return $this->name;
}
public function setName($name){
$this->name = $name;
}
public function getValue(){
return $this->value;
}
public function setValue($value){
$this->value = $value;
}
/**
* Pobiera nazwę tabeli reprezentującej obiekt w SQL
* @return string
*/
public function GetTableName(){
return self::$tableName;
}
/**
* Pobiera nazwę klucza głównego tabeli
* @return string
*/
public function GetClassTablePK() {
return self::$classTablePK;
}
/**
* Pobiera tablice mapującą pola klasy na pola tabeli
* @return array
*/
public function GetFields(){
return self::$fields;
}
/**
* Pobiera nazwę klasy
* @return string
*/
public function GetClassName(){
return self::$className;
}
}
?>