Closed LennartMart closed 11 years ago
VB in klasse speler: functie get_alle_spelers. Dit vereist geen ingevuld object, maar geeft een lijst van Spelers terug.
Oplossing: static function van maken, zodat het kan opgeroepen worden als Speler::get_alle_spelers.
http://stackoverflow.com/questions/11347619/php-array-of-objects-by-static-methods-or-functions
Ofwel plain simpel constructor gebruiken en functie aanroepen. http://stackoverflow.com/questions/5986263/php-abstract-classes-and-interfaces-involving-static-methods
VB in klasse speler: functie get_alle_spelers. Dit vereist geen ingevuld object, maar geeft een lijst van Spelers terug.
Oplossing: static function van maken, zodat het kan opgeroepen worden als Speler::get_alle_spelers.
http://stackoverflow.com/questions/11347619/php-array-of-objects-by-static-methods-or-functions