[ticket/12366] Add Event core.search_get_posts_data

PHPBB3-12366
[ticket/12366] Changed to sql_build_query

PHPBB3-12366
[ticket/12366] Include ORDER BY into the query builder

PHPBB3-12366
[ticket/12366] Expanded event vars

PHPBB3-12366
[ticket/12366] Conform to new event coding guidelines

PHPBB3-12366
[ticket/12366] Fixed missing comma

PHPBB3-12366
Merge pull request #2257 from PayBas/ticket/12366

[ticket/12366] Add Event core.search_get_posts_data

* PayBas/ticket/12366:
  [ticket/12366] Fixed missing comma
  [ticket/12366] Conform to new event coding guidelines
  [ticket/12366] Expanded event vars
  [ticket/12366] Include ORDER BY into the query builder
  [ticket/12366] Changed to sql_build_query
  [ticket/12366] Add Event core.search_get_posts_data