constructor Structures_DataGrid_Column::Structures_DataGrid_Column()

constructor Structures_DataGrid_Column::Structures_DataGrid_Column() -- Constructor

Synopsis

require_once 'Structures/DataGrid/Column.php';

void constructor Structures_DataGrid_Column::Structures_DataGrid_Column (string $label [, string $field = NULL [, string $orderBy = NULL [, string $attributes = array() [, string $autoFillValue = NULL [, mixed $formatter = NULL [, array $formatterArgs = array()]]]]]])

Description

Creates default table style settings

Parameter

string $label

The label of the column to be printed

string $field

The name of the field for the column to be mapped to

string $orderBy

The field or expression to order the data by

string $attributes

The HTML attributes for the TR tag

string $autoFillValue

The value to use for the autoFill

mixed $formatter

Formatter callback. See setFormatter()

array $formatterArgs

Associative array of arguments passed as second argument to the formatter callback

Throws

throws no exceptions thrown

See

see Structures_DataGrid_Column::setFormatter()

see Structures_DataGrid::addColumn()

see http://www.php.net/manual/en/language.pseudo-types.php

Note

This function can not be called statically.