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

134 lines
1.8 KiB
PHP

<?php
/**
* Model dla klasy ShopSeries
*
* @author ModGen
*/
class ShopSeries extends DataObject{
/**
* nazwa tabeli
*/
static $tableName = 'shop_series';
/**
* nazwa klucza tabeli
*/
static $classTablePK = 'id_shop_series';
/**
* nazwa klasy
*/
static $className = __CLASS__;
/**
* tablica mapująca pola klasy
*/
static $fields = array(
'id_shop_series' => 'id',
'name' => 'name',
'lang' => 'lang',
'publication' => 'publication'
);
protected $id;
private $name;
private $lang;
private $publication;
// -- Konstruktor --
function __construct( $id = -1 , $name = null, $lang = null, $publication = null){
$this->id = $id;
$this->name = $name;
$this->lang = $lang;
$this->publication = $publication;
}
// -- Get-y i Set-y --
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 getLang(){
return $this->lang;
}
public function setLang($lang){
$this->lang = $lang;
}
public function getPublication(){
return $this->publication;
}
public function setPublication($publication){
$this->publication = $publication;
}
/**
* 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;
}
}
?>