public function appendColumnSizesToPalette($dataContainer)
    {
        $model = \Database::getInstance()
            ->prepare('SELECT * FROM tl_columnset WHERE id=?')
            ->limit(1)
            ->execute($dataContainer->id);

        $sizes = array_merge(deserialize($model->sizes, true));

        foreach ($sizes as $size) {
            $field = 'columnset_' . $size;

            \MetaPalettes::appendFields('tl_columnset', 'columnset', array($field));
        }
    }
public function appendColumnSizesToPalette($dataContainer)
    {
        $model = \Database::getInstance()
            ->prepare('SELECT * FROM tl_columnset WHERE id=?')
            ->limit(1)
            ->execute($dataContainer->id);

        $sizes = array_merge(deserialize($model->sizes, true));

        foreach ($sizes as $size) {
            $field = 'columnset_' . $size;

            \MetaPalettes::appendFields('tl_columnset', 'columnset', array($field));
        }
    }
public function appendColumnSizesToPalette ( $ dataContainer ) { $ model = \ Database :: getInstance ( ) -> prepare ( 'SELECT * FROM tl_columnset WHERE id=?' ) -> limit ( 1 ) -> execute ( $ dataContainer -> id ) ; $ sizes = array_merge ( deserialize ( $ model -> sizes , true ) ) ; foreach ( $ sizes as $ size ) { $ field = 'columnset_' . $ size ; \ MetaPalettes :: appendFields ( 'tl_columnset' , 'columnset' , array ( $ field ) ) ; } }
Append column sizes fields dynamically to the palettes.

@param \DataContainer $dataContainer The data container driver.

@return void
Append column sizes fields dynamically to the palettes .