public static function getById($id) { $event = new self(); $event->getDao()->getById(intval($id)); return $event; }