'id', 'name' => 'name', 'city' => 'city', 'address' => 'address', 'description' => 'description', 'parameters' => 'parameters', 'lng' => 'lng', 'lat' => 'lat', 'type' => 'type', 'lang' => 'lang', 'id_structure' => 'idStructure', 'id_category' => 'idCategory', 'publication' => 'publication', 'weight' => 'weight' ); protected $id; private $name; private $city; private $address; private $description; private $parameters; private $lng; private $lat; private $type; private $lang; private $idStructure; private $idCategory; private $publication; private $weight; private $objJson; // -- Konstruktor -- function __construct( $id = null, $name = null, $city = null, $address = null, $description = null, $parameters = null, $lng = null, $lat = null, $type = null, $lang = null, $idStructure = null, $idCategory = null, $publication = null){ $this->id = $id; $this->name = $name; $this->city = $city; $this->address = $address; $this->description = $description; $this->parameters = $parameters; $this->lng = $lng; $this->lat = $lat; $this->type = $type; $this->lang = $lang; $this->idStructure = $idStructure; $this->idCategory = $idCategory; $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 getCity(){ return $this->city; } public function setCity($city){ $this->city = $city; } public function getAddress(){ return $this->address; } public function setAddress($address){ $this->address = $address; } public function getDescription(){ return $this->description; } public function setDescription($description){ $this->description = $description; } public function getParameters(){ return $this->parameters; } public function setParameters($parameters){ $this->parameters = $parameters; } public function getLng(){ return $this->lng; } public function setLng($lng){ $this->lng = $lng; } public function getLat(){ return $this->lat; } public function setLat($lat){ $this->lat = $lat; } public function getType(){ return $this->type; } public function setType($type){ $this->type = $type; } public function getLang(){ return $this->lang; } public function setLang($lang){ $this->lang = $lang; } public function getIdStructure(){ return $this->idStructure; } public function setIdStructure($idStructure){ $this->idStructure = $idStructure; } public function getIdCategory(){ return $this->idCategory; } public function setIdCategory($idCategory){ $this->idCategory = $idCategory; } public function getPublication(){ return $this->publication; } public function setPublication($publication){ $this->publication = $publication; } public function getWeight(){ return $this->weight; } public function setWeight($weight){ $this->weight = $weight; } public function getObjJson(){ return $this->objJson; } public function setObjJson($objJson){ $this->objJson = $objJson; } /** * 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; } } ?>