private function gatherTranslationsFromModel (stdClass $model, string $tpl, array $skip)
    {
        $output = '';

        if (array_key_exists ('columns', $model) && !empty($model->columns))
            foreach ($model->columns as $column) {
                if (in_array ($column->Field, $skip))
                    continue;

                $line = str_replace ('{key}', $column->Field, $tpl);
                $line = str_replace ('{value}', str_replace ("_", " ", ucfirst ($column->Field)), $line);

                $output .= $line;
            }

        return $output;
    }
private function gatherTranslationsFromModel (stdClass $model, string $tpl, array $skip)
    {
        $output = '';

        if (array_key_exists ('columns', $model) && !empty($model->columns))
            foreach ($model->columns as $column) {
                if (in_array ($column->Field, $skip))
                    continue;

                $line = str_replace ('{key}', $column->Field, $tpl);
                $line = str_replace ('{value}', str_replace ("_", " ", ucfirst ($column->Field)), $line);

                $output .= $line;
            }

        return $output;
    }
private function gatherTranslationsFromModel ( stdClass $ model , string $ tpl , array $ skip ) { $ output = '' ; if ( array_key_exists ( 'columns' , $ model ) && ! empty ( $ model -> columns ) ) foreach ( $ model -> columns as $ column ) { if ( in_array ( $ column -> Field , $ skip ) ) continue ; $ line = str_replace ( '{key}' , $ column -> Field , $ tpl ) ; $ line = str_replace ( '{value}' , str_replace ( "_" , " " , ucfirst ( $ column -> Field ) ) , $ line ) ; $ output .= $ line ; } return $ output ; }
Gathering fields from specific model

@param stdClass $model
@param string $tpl
@param array $skip
@return string
Gathering fields from specific model