<commit_before><?php
class Vpc_Basic_Table_Component extends Vpc_Abstract_Composite_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['componentName'] = trlVps('Table');
        $ret['ownModel'] = 'Vpc_Basic_Table_Model';
        $ret['childModel'] = 'Vpc_Basic_Table_ModelData';

        // row styles: the key is put in the proper <tr> tag
        // if no tag is set in the sub-array, td is used
        // simple string example: 'bold' => trlVps('Bold')
        // complex arrayexample: 'headline' => array('name' => trlVps('Headline'), 'tag'  => 'th')
        $ret['rowStyles'] = array(
            'headline' => array(
                'name' => trlVps('Headline'),
                'tag'  => 'th'
            )
        );

        // tableStyles: the key is the table-css-class, the value the name for
        // settings page in backend
        // e.g.: 'green' => trlVps('Green')
        $ret['tableStyles'] = array('green' => trlVps('Green'));
        $ret['cssClass'] = 'webStandard';
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['settingsRow'] = $this->_getRow();

        $dataSelect = new Vps_Model_Select();
        $dataSelect->order('pos', 'ASC');
        $ret['dataRows'] = $this->_getRow()->getChildRows('tableData', $dataSelect);
        return $ret;
    }

}<commit_msg>table komponente leert cache korrekt<commit_after><?php
class Vpc_Basic_Table_Component extends Vpc_Abstract_Composite_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['componentName'] = trlVps('Table');
        $ret['ownModel'] = 'Vpc_Basic_Table_Model';
        $ret['childModel'] = 'Vpc_Basic_Table_ModelData';

        // row styles: the key is put in the proper <tr> tag
        // if no tag is set in the sub-array, td is used
        // simple string example: 'bold' => trlVps('Bold')
        // complex arrayexample: 'headline' => array('name' => trlVps('Headline'), 'tag'  => 'th')
        $ret['rowStyles'] = array(
            'headline' => array(
                'name' => trlVps('Headline'),
                'tag'  => 'th'
            )
        );

        // tableStyles: the key is the table-css-class, the value the name for
        // settings page in backend
        // e.g.: 'green' => trlVps('Green')
        $ret['tableStyles'] = array('green' => trlVps('Green'));
        $ret['cssClass'] = 'webStandard';
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['settingsRow'] = $this->_getRow();

        $dataSelect = new Vps_Model_Select();
        $dataSelect->order('pos', 'ASC');
        $ret['dataRows'] = $this->_getRow()->getChildRows('tableData', $dataSelect);
        return $ret;
    }

    public function getCacheVars()
    {
        $ret = parent::getCacheVars();
        $ret[] = array(
            'model' => $this->getChildModel(),
            'componentId' => $this->getData()->componentId
        );
        return $ret;
    }
}
{'fraction_non_alphanumeric': 0.16054899457389085, 'fraction_numerical': 0.0, 'mean_word_length': 2.3411513859275055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 36, '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': '3282772', 'n_tokens_mistral': 959, 'n_tokens_neox': 960, 'n_words': 219}