Returns an array of named columns needed for storage.

@see    createStorageColumns()
@return Column[]
763788
public function getStorageColumns()
    {
        $columns = $this->createStorageColumns();

        $namedColumns = [];

        foreach ($columns as $column) {
            $namedColumns[$column->columnName] = $column;
        }

        return $namedColumns;
    }
1134364
public function getColumns()
    {
        //make sure we only run this once and then return the cached version
        if (empty($this->columns)) {
            foreach ($this->config->getOption('columns') as $name => $options) {
                //if only a string value was supplied, may sure to turn it into an array
                $object                                           = $this->make($this->parseOptions($name, $options));
                $this->columns[$object->getOption('column_name')] = $object;
            }
        }

        return $this->columns;
    }
408722
public function getTableColumns(): array
    {
        $columns = [
            'id' => $this->headerImage(trans('HCResource::resource.preview'), 100, 100, true),
            'uploaded_by' => $this->headerText(trans('HCResource::resource.uploaded_by')),
            'path' => $this->headerText(trans('HCResource::resource.path')),
            'original_name' => $this->headerText(trans('HCResource::resource.original_name')),
            'size' => $this->headerText(trans('HCResource::resource.size')),
            'full_path' => $this->headerCopy(trans('HCResource::resource.full_path'), 'id',
                route('resource.get', '') . '/'),
        ];

        return $columns;
    }
384057
public function columns(): array
    {
        return [
            new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'),
            new CensusColumnSurname($this, 'Surname', 'Surname'),
            new CensusColumnNull($this, 'CW', 'Whether a soldier, sailor or marine during the civil war (U.S. or Conf.), or widow of such person'),
            new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of family'),
            new CensusColumnNull($this, 'Race', 'Whether white, black, mulatto, quadroon, octoroon, Chinese, Japanese, or Indian'),
            new CensusColumnSexMF($this, 'Sex', 'Sex'),
            new CensusColumnAge($this, 'Age', 'Age at nearest birthday. If under one year, give age in months'),
            new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
            new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'Whether married duirng the census year (June 1, 1889, to May 31, 1890)'),
            new CensusColumnNull($this, 'Chil', 'Mother of how many children, and number of these children living'),
            new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'),
            new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'),
            new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'),
            new CensusColumnNull($this, 'US', 'Number of years in the United States'),
            new CensusColumnNull($this, 'Nat', 'Whether naturalized'),
            new CensusColumnNull($this, 'Papers', 'Whether naturalization papers have been taken out'),
            new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, occupation'),
            new CensusColumnNull($this, 'Unemp', 'Months unemployed during the census year (June 1, 1889, to May 31, 1890)'),
            new CensusColumnNull($this, 'Read', 'Able to read'),
            new CensusColumnNull($this, 'Write', 'Able to write'),
            new CensusColumnNull($this, 'Eng', 'Able to speak English. If not the language or dialect spoken'),
            new CensusColumnNull($this, 'Disease', 'Whether suffering from acute or chronic disease, with name of disease and length of time afflicted'),
            new CensusColumnNull($this, 'Infirm', 'Whether defective in mind, sight, hearing, or speech, or whether crippled, maimed, or deformed, with name of defect'),
            new CensusColumnNull($this, 'Prisoner', 'Whether a prisoner, convict, homeless child, or pauper'),
        ];
    }
1222838
public function columns(): array
    {
        return [
            new CensusColumnFullName($this, 'Name', 'Name and surname'),
            new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
            new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
            new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
            new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
            new CensusColumnYearsMarried($this, 'YrM', 'Years married'),
            new CensusColumnChildrenBornAlive($this, 'ChA', 'Children born alive'),
            new CensusColumnChildrenLiving($this, 'ChL', 'Children who are still alive'),
            new CensusColumnChildrenDied($this, 'ChD', 'Children who have died'),
            new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
            new CensusColumnNull($this, 'Ind', 'Industry'),
            new CensusColumnNull($this, 'Emp', 'Employer, worker or own account'),
            new CensusColumnNull($this, 'Home', 'Working at home'),
            new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
            new CensusColumnNationality($this, 'Nat', 'Nationality'),
            new CensusColumnNull($this, 'Infirm', 'Infirmity'),
            new CensusColumnNull($this, 'Lang', 'Language spoken'),
        ];
    }
1192898
public function getColumnHeaders()
	{
		if( !$this->withHeaders )
			throw new RuntimeException( 'Column headers not enabled' );
		$iterator	= new FS_File_CSV_Iterator( $this->fileName, $this->delimiter );
		if( !$iterator->valid() )
			throw new RuntimeException( 'Invalid CSV file' );
		return $iterator->current();
	}
1299932
public function columns(): array
    {
        return [
            new CensusColumnNull($this, 'Schedule', 'Schedule Number'),
            new CensusColumnNull($this, 'SubNum', 'Schedule Sub Number'),
            new CensusColumnSurnameGivenNames($this, 'Name', 'Surname & other names'),
            new CensusColumnNull($this, 'Role', 'For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate'),
            new CensusColumnSexMF($this, 'Sex', 'Male or Female'),
            new CensusColumnBirthDayMonthSlashYear($this, 'DOB', 'Date of birth'),
            new CensusColumnConditionEnglish($this, 'MC', 'Marital Condition - Married, Single, Unmarried, Widowed or Divorced'),
            new CensusColumnOccupation($this, 'Occupation', 'Occupation'),
        ];
    }
1038277
public function getColumns()
    {
        $columns = array();

        foreach ($this->getComponents() as $item) {
            if ($item instanceof GridField_ColumnProvider) {
                $item->augmentColumns($this, $columns);
            }
        }

        return $columns;
    }
782641
public function columnKeys()
    {
        $columnKeys = [];

        foreach ($this->columns() as $key => $column) {
            if (is_string($key)) {
                $columnKeys[] = $key;
            } elseif (str_contains($column, '.')) {
                list($table, $columnKey) = explode('.', $column);
                $columnKeys[]            = $columnKey;
            } else {
                $columnKeys[] = $column;
            }
        }

        return $columnKeys;
    }
1291505
public function getColumns()
    {
        if (null === $this->columns) {
            $this->columns = array();
            $this->findColumns();
        }

        return $this->columns;
    }
1328499
final public static function getColumns()
    {
        $result = [];
        foreach (static::COLUMNS as $column) {
            $result[] = trim(explode('[', $column, 2)[0]);
        }
        return $result;
    }
757698
public function columns(): array
    {
        return [
            new CensusColumnFullName($this, 'Name', 'Name of head of family'),
            new CensusColumnNull($this, 'M0-10', 'Free white males 0-10 years'),
            new CensusColumnNull($this, 'M10-16', 'Free white males 10-16 years'),
            new CensusColumnNull($this, 'M16-18', 'Free white males 16-18 years'),
            new CensusColumnNull($this, 'M16-26', 'Free white males 16-26 years'),
            new CensusColumnNull($this, 'M26-45', 'Free white males 26-45 years'),
            new CensusColumnNull($this, 'M45+', 'Free white males 45+ years'),
            new CensusColumnNull($this, 'F0-10', 'Free white females 0-10 years'),
            new CensusColumnNull($this, 'F10-16', 'Free white females 10-16 years'),
            new CensusColumnNull($this, 'F16-26', 'Free white females 16-26 years'),
            new CensusColumnNull($this, 'F26-45', 'Free white females 26-45 years'),
            new CensusColumnNull($this, 'F45+', 'Free white females 45+ years'),
            new CensusColumnNull($this, 'FNR', 'Foreigners not naturalized'),
            new CensusColumnNull($this, 'AG', 'No. engaged in agriculture'),
            new CensusColumnNull($this, 'COM', 'No. engaged in commerce'),
            new CensusColumnNull($this, 'MNF', 'No. engaged in manufactures'),
            new CensusColumnNull($this, 'M0', 'Slave males 0-14 years'),
            new CensusColumnNull($this, 'M14', 'Slave males 14-26 years'),
            new CensusColumnNull($this, 'M26', 'Slave males 26-45 years'),
            new CensusColumnNull($this, 'M45', 'Slave males 45+ years'),
            new CensusColumnNull($this, 'F0', 'Slave females 0-14 years'),
            new CensusColumnNull($this, 'F14', 'Slave females 14-26 years'),
            new CensusColumnNull($this, 'F26', 'Slave females 26-45 years'),
            new CensusColumnNull($this, 'F45', 'Slave females 45+ years'),
            new CensusColumnNull($this, 'M0', 'Free colored males 0-14 years'),
            new CensusColumnNull($this, 'M14', 'Free colored males 14-26 years'),
            new CensusColumnNull($this, 'M26', 'Free colored males 26-45 years'),
            new CensusColumnNull($this, 'M45', 'Free colored males 45+ years'),
            new CensusColumnNull($this, 'F0', 'Free colored females 0-14 years'),
            new CensusColumnNull($this, 'F14', 'Free colored females 14-26 years'),
            new CensusColumnNull($this, 'F26', 'Free colored females 26-45 years'),
            new CensusColumnNull($this, 'F45', 'Free colored females 45+ years'),
        ];
    }
86594
public function getColumns()
    {
        $columns = array();
        $columns[$this->_parent_key] = $this->_child_column;
        if ($this->_polymorphic) {
            $columns['type'] = $this->_type_column;
        }

        return $columns;
    }
216464
public function getColumns()
    {
        $columns = [];

        foreach ($this->columns as $field => $fieldTitle) {
            if (in_array($field, $this->model->getFillable())) {
                if (!$field) {
                    $field = $fieldTitle;
                    $fieldTitle = Str::title($fieldTitle);
                }
                $columns[$field] = $fieldTitle;
                continue;
            }

            // We can replace this with data_get() I believe.
            if (($methodBreaker = strpos($field, '.')) !== false) {
                $method = substr($field, 0, $methodBreaker);
                if (method_exists($this->model, $method)) {
                    if (method_exists($this->model->$method(), $submethod = str_replace($method.'.', '', $field))) {
                        $this->model->$method()->$submethod();

                        $columns[$field] = $fieldTitle;
                        continue;
                    }
                }
            }

            if (is_numeric($field)) {
                $field = $fieldTitle;
                $fieldTitle = Str::title($fieldTitle);
            }

            $columns[$field] = $fieldTitle;
        }

        if (count($columns)) {
            return $columns;
        }

        return [$this->model->getKeyName() => $this->model->getKeyName()];
    }
1334930
public function getTableColumns(): array
    {
        $columns = [
            'country_id' => $this->headerText(trans('HCRegion::regions_city.country_id')),
            'translation.label' => $this->headerText(trans('HCRegion::regions_city.label')),
            'visible' => $this->headerCheckBox(trans('HCRegion::regions_city.visible')),
        ];

        return $columns;
    }
1041150
public function columns(): array
    {
        return [
            new CensusColumnFullName($this, 'Name', 'Name'),
            new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'),
            new CensusColumnNull($this, 'Race', 'Color or race'),
            new CensusColumnSexMF($this, 'Sex', 'Sex'),
            new CensusColumnBirthMonth($this, 'Month', 'Month of birth'),
            new CensusColumnBirthYear($this, 'Year', 'Year of birth'),
            new CensusColumnAge($this, 'Age', 'Age at last birthday'),
            new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
            new CensusColumnYearsMarried($this, 'Marr', 'Number of years married'),
            new CensusColumnChildrenBornAlive($this, 'Chil', 'Mother of how many children'),
            new CensusColumnChildrenLiving($this, 'Chil', 'Number of these children living'),
            new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth of this person'),
            new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father of this person'),
            new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother of this person'),
            new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'),
            new CensusColumnNull($this, 'US', 'Number of years in the United States'),
            new CensusColumnNull($this, 'Nat', 'Naturalization'),
            new CensusColumnOccupation($this, 'Occupation', 'Occupation, trade of profession'),
            new CensusColumnNull($this, 'Unemp', 'Months not unemployed'),
            new CensusColumnNull($this, 'School', 'Attended school (in months)'),
            new CensusColumnNull($this, 'Read', 'Can read'),
            new CensusColumnNull($this, 'Write', 'Can write'),
            new CensusColumnNull($this, 'Eng', 'Can speak English'),
            new CensusColumnNull($this, 'Home', 'Owned or rented'),
            new CensusColumnNull($this, 'Mort', 'Owned free or mortgaged'),
            new CensusColumnNull($this, 'Farm', 'Farm or house'),
        ];
    }
404253
public function getColumns(): array
    {
        $tSelects = isset($this->statements['selects']) === true ? $this->statements['selects'] : [];
        $tColumns = [];
        foreach ($tSelects as $key => $value) {
            if (\is_string($value)) {
                if (\is_int($key)) {
                    $tElements = explode('.', $value);
                    if (!\in_array('*', $tElements, true)) {
                        $tColumns[$tElements[1] ?? $tElements[0]] = $value;
                    }
                } elseif (\is_string($key)) {
                    $tColumns[$value] = $key;
                }
            }
        }
        return $tColumns;
    }