src/Engine/CrudeSetupTrait/ExtraColumn.php
public function setExtraColumn($name, $visible = false, $description = '')
    {
        $extraColumns = is_array($name)
            ? $name
            : [[$name, $visible, $description]];

        foreach ($extraColumns as $column) {
            if (! is_array($column))
                $column = [$column];

            $this->extraColumn[$column[0]] = [
                'name' => $column[0],
                'visible' => isset($column[1]) ? $column[1] : false,
                'description' => isset($column[2]) ? $column[2] : ''
            ];
        }

        return $this;
    }
public function setExtraColumn($name, $visible = false, $description = '')
    {
        $extraColumns = is_array($name)
            ? $name
            : [[$name, $visible, $description]];

        foreach ($extraColumns as $column) {
            if (! is_array($column))
                $column = [$column];

            $this->extraColumn[$column[0]] = [
                'name' => $column[0],
                'visible' => isset($column[1]) ? $column[1] : false,
                'description' => isset($column[2]) ? $column[2] : ''
            ];
        }

        return $this;
    }
public function setExtraColumn ( $ name , $ visible = false , $ description = '' ) { $ extraColumns = is_array ( $ name ) ? $ name : [ [ $ name , $ visible , $ description ] ] ; foreach ( $ extraColumns as $ column ) { if ( ! is_array ( $ column ) ) $ column = [ $ column ] ; $ this -> extraColumn [ $ column [ 0 ] ] = [ 'name' => $ column [ 0 ] , 'visible' => isset ( $ column [ 1 ] ) ? $ column [ 1 ] : false , 'description' => isset ( $ column [ 2 ] ) ? $ column [ 2 ] : '' ] ; } return $ this ; }
Sets the Extra column.

@param array|sting $name
@param sting $description = true
@param boolean $visible = false

@return self
Sets the Extra column .