Files
aowow/includes/class.worldevent.php
Sarjuuk 9019c3b811 Types
dropped single-item classes for all types, because it doesn't make much difference to use a list with a single item instead, especially if it's preselected. Additionally it is now easier to chain certain queries together and execute them all at once. additionally, additionally certain data can now be cahced and shared between types of the same .. type, that were previously in different instances alltogether.

And you may now specify a limit to sql-queries (while setting up a typeList), it will default to the config-limit if no value is given.
2013-03-05 22:07:12 +01:00

18 lines
309 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
class WorldEvent extends BaseType
{
public static function getName($id)
{
$row = DB::Aowow()->SelectRow('SELECT * FROM ?_holidays WHERE Id = ?d', intVal($id));
return Util::localizedString($row, 'name');
}
}
?>