/** * Calculates ressources and executes the event handler */ public function initPlanet() { global $planetrow; self::$planetObj = Planet::getInstance(self::getUser()->current_planet); self::$planetObj->setPlanetRow(); self::getTPL()->assign(array('actualPlanet' => self::getPlanet())); }