<commit_before><?php
class Vpc_Events_Directory_Component extends Vpc_News_Directory_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['componentName'] = trlVps('Events.Events');
        $ret['childModel'] = 'Vpc_Events_Directory_Model';

        $ret['generators']['detail']['class'] = 'Vpc_Events_Directory_Generator';
        $ret['generators']['detail']['component'] = 'Vpc_Events_Detail_Component';
        $ret['generators']['detail']['dbIdShortcut'] = 'events_';

        $ret['generators']['child']['component']['view'] = 'Vpc_Events_List_View_Component';

        return $ret;
    }

    public function getSelect()
    {
        $select = parent::getSelect();
        $select->where("IF(ISNULL(end_date), start_date, end_date) >= NOW()");
        return $select;
    }
}<commit_msg>events werden egal welche ablauf-uhrzeit sie haben, immer den restl. tag angezeigt<commit_after><?php
class Vpc_Events_Directory_Component extends Vpc_News_Directory_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['componentName'] = trlVps('Events.Events');
        $ret['childModel'] = 'Vpc_Events_Directory_Model';

        $ret['generators']['detail']['class'] = 'Vpc_Events_Directory_Generator';
        $ret['generators']['detail']['component'] = 'Vpc_Events_Detail_Component';
        $ret['generators']['detail']['dbIdShortcut'] = 'events_';

        $ret['generators']['child']['component']['view'] = 'Vpc_Events_List_View_Component';

        return $ret;
    }

    public function getSelect()
    {
        $select = parent::getSelect();
        // nur aktuellen tag nehmen ohne uhrzeit, dann sieht man ein event
        // den restlichen tag, egal welche uhrzeit. - das soll so sein
        $select->where("IF(ISNULL(end_date), start_date, end_date) >= CURDATE()");
        return $select;
    }
}
{'fraction_non_alphanumeric': 0.15548621944877794, 'fraction_numerical': 0.0, 'mean_word_length': 3.8585858585858586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3498446', 'n_tokens_mistral': 576, 'n_tokens_neox': 569, 'n_words': 104}