kartik\builder\TabularForm::initColumn PHP Method

initColumn() protected method

Initializes special columns
protected initColumn ( string $type )
$type string the grid column type (one of 'serial', 'action', 'checkbox')
    protected function initColumn($type)
    {
        $col = $type . 'Column';
        if ($this->{$col} === false) {
            return;
        }
        $func = 'init' . ucfirst($type) . 'Column';
        $this->{$func}();
        if ($type === 'serial') {
            $this->_columns = ArrayHelper::merge([$this->{$col}], $this->_columns);
        } else {
            $this->_columns = ArrayHelper::merge($this->_columns, [$this->{$col}]);
        }
    }