protected _getColumnArray ( string $table = null ) : array | ||
$table | string | name of the table |
return | array |
protected function _getColumnArray($table = null)
{
return array_filter([$table === 'categories' || $table === 'articles' ? 'title' : null, $table === 'categories' || $table === 'articles' ? 'description' : null, $table === 'categories' || $table === 'articles' ? 'keywords' : null, $table === 'articles' || $table === 'comments' ? 'text' : null]);
}