private function newBlock($pl_id) { $pl = new playlist(); $pl->getPlaylistByID($pl_id); $block = new playlist_bloecke(); $block->pl_id = $pl_id; $block->pb_sort_order = $pl->getNextSortorder(); $block->pb_id = 'new'; $block->saveBlock(); echo $block->renderHTML($block->pb_sort_order) . '<div id="playlistBlockZiel"></div>'; }