public function LoadApp($type, $id) { $app = new App(); $app->LoadInfoByXml($type, $id); return $app; }