145 lines
2.2 KiB
PHP
145 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Model dla klasy MfHomeSiteProduct
|
|
*
|
|
* @author ModGen
|
|
*/
|
|
|
|
class MfHomeSiteProduct extends DataObject{
|
|
|
|
|
|
/**
|
|
* nazwa tabeli
|
|
*/
|
|
static $tableName = 'mf_home_site_product';
|
|
|
|
/**
|
|
* nazwa klucza tabeli
|
|
*/
|
|
static $classTablePK = 'id_mf_home_site_product';
|
|
|
|
/**
|
|
* nazwa klasy
|
|
*/
|
|
static $className = __CLASS__;
|
|
|
|
/**
|
|
* tablica mapująca pola klasy
|
|
*/
|
|
static $fields = array(
|
|
'id_mf_home_site_product' => 'id',
|
|
'id_product' => 'idProduct',
|
|
'sort' => 'sort',
|
|
'lang' => 'lang',
|
|
'publication' => 'publication'
|
|
);
|
|
|
|
|
|
protected $id;
|
|
private $idProduct;
|
|
private $sort;
|
|
private $lang;
|
|
private $publication;
|
|
|
|
|
|
|
|
// -- Konstruktor --
|
|
|
|
|
|
function __construct( $id = -1 , $idProduct = null, $sort = null, $lang = null, $publication = null){
|
|
$this->id = $id;
|
|
$this->idProduct = $idProduct;
|
|
$this->sort = $sort;
|
|
$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 getIdProduct(){
|
|
return $this->idProduct;
|
|
}
|
|
|
|
public function setIdProduct($idProduct){
|
|
$this->idProduct = $idProduct;
|
|
}
|
|
|
|
|
|
public function getSort(){
|
|
return $this->sort;
|
|
}
|
|
|
|
public function setSort($sort){
|
|
$this->sort = $sort;
|
|
}
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|