![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 3.03.2016 Ostrzeżenie: (0%) ![]() ![]() |
Witam, posiadam dwie klasy, DB i Player, w player w konstrukcie zrobilem laczenie z DB. W funkcji getPlayer w Player mam dane o uzytkowniku np. $this->id = $array['id']; teraz gdy zrobilem nowa funkcje pod funkcja getPlayer w tej samej klasie gdy odwoluje sie do id czyli $this->id nie pobiera mi juz tego id. Czy musze robic jakas specjalna publiczna funkcje lub cos innego abym mogl z tego korzystac?
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 3.03.2016 Ostrzeżenie: (0%) ![]() ![]() |
Dobra, dzieki.
Ostatni już problem, założmy mam 2 klasy Player i Guild, chce do konstruktora klasy Guild podać id gracza, czemu nie moge uzyć $this->player->id ? Ten post edytował IdeaProgram 6.03.2016, 15:48:12 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 12.10.2025 - 07:48 |