update
This commit is contained in:
151
core/model/FkMapsCategory.class.php
Normal file
151
core/model/FkMapsCategory.class.php
Normal file
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
/**
|
||||
* Model dla klasy FkMapsCategory
|
||||
*
|
||||
* @author ModGen
|
||||
*/
|
||||
|
||||
class FkMapsCategory extends DataObject{
|
||||
|
||||
|
||||
/**
|
||||
* nazwa tabeli
|
||||
*/
|
||||
static $tableName = 'fk_maps_category';
|
||||
|
||||
/**
|
||||
* nazwa klucza tabeli
|
||||
*/
|
||||
static $classTablePK = 'id_fk_maps_category';
|
||||
|
||||
/**
|
||||
* nazwa klasy
|
||||
*/
|
||||
static $className = __CLASS__;
|
||||
|
||||
/**
|
||||
* tablica mapująca pola klasy
|
||||
*/
|
||||
static $fields = array(
|
||||
'id_fk_maps_category' => 'idFkMapsCategory',
|
||||
'name' => 'name',
|
||||
'lang' => 'lang',
|
||||
'publication' => 'publication',
|
||||
'decription' => 'decription'
|
||||
|
||||
);
|
||||
|
||||
|
||||
private $idFkMapsCategory;
|
||||
private $name;
|
||||
private $lang;
|
||||
private $publication;
|
||||
private $decription;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// -- Konstruktor --
|
||||
|
||||
|
||||
function __construct( $idFkMapsCategory = null, $name = null, $lang = null, $publication = null, $decription = null){
|
||||
$this->idFkMapsCategory = $idFkMapsCategory;
|
||||
$this->name = $name;
|
||||
$this->lang = $lang;
|
||||
$this->publication = $publication;
|
||||
$this->decription = $decription;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -- Get-y i Set-y --
|
||||
|
||||
public function getId(){
|
||||
return $this->idFkMapsCategory;
|
||||
}
|
||||
|
||||
public function setId($idFkMapsCategory){
|
||||
$this->idFkMapsCategory = $idFkMapsCategory;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
public function getDecription(){
|
||||
return $this->decription;
|
||||
}
|
||||
|
||||
public function setDecription($decription){
|
||||
$this->decription = $decription;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user