class Column

This class allows the storage and retrieval of the attributes of a column of a Table object

Properties

private Table $table
private int $id
private string $name
private string $type
private string $label
private bool $selected

Methods

void
__construct(Table|null $table, int $id, string $name, string $type)

Constructor of class Column

getTable()

Retrieves the Table object to which the column belongs

int
getId()

Retrieves the ID of this column

void
setId(int $id)

Sets the ID of this column

string
getName()

Retrieves the name of this column

void
setName(string $name)

Sets the name of this column

string
getType()

Retrieves the type of this column

void
setType(string $type)

Sets the type of this column

string
getLabel()

Retrieves the label of this column

void
setLabel(string $label)

Sets the label of this column

bool
isSelected()

Retrieves the selected attribute of this Column object

bool
getSelected()

Retrieves the selected attribute of this Column object

void
setSelected(bool $selected)

Determines whether this column is selected or not

Details

at line 98
void __construct(Table|null $table, int $id, string $name, string $type)

Constructor of class Column

Parameters

Table|null $table The Table object to which the column belongs
int $id The ID of this Column object
string $name The name of this Column object
string $type eg date, boolean, number, integer, text, textarea, money, choice, percent, table, department region, country

Return Value

void

at line 112
Table getTable()

Retrieves the Table object to which the column belongs

Return Value

Table The Table object to which the column belongs

at line 123
int getId()

Retrieves the ID of this column

Return Value

int The ID of this Column object

at line 135
void setId(int $id)

Sets the ID of this column

Parameters

int $id The ID of this Column object

Return Value

void

at line 146
string getName()

Retrieves the name of this column

Return Value

string the The name of this Column object

at line 158
void setName(string $name)

Sets the name of this column

Parameters

string $name The name of this Column object

Return Value

void

at line 169
string getType()

Retrieves the type of this column

Return Value

string The type of this Column object

at line 181
void setType(string $type)

Sets the type of this column

Parameters

string $type The ID of this Column object : date, boolean, number, integer, text, textarea, money, choice, percent, table, department region, country

Return Value

void

at line 192
string getLabel()

Retrieves the label of this column

Return Value

string The label of this Column object

at line 204
void setLabel(string $label)

Sets the label of this column

Parameters

string $label The label of this Column object

Return Value

void

at line 215
bool isSelected()

Retrieves the selected attribute of this Column object

Return Value

bool the value of selected

at line 226
bool getSelected()

Retrieves the selected attribute of this Column object

Return Value

bool the value of selected

at line 238
void setSelected(bool $selected)

Determines whether this column is selected or not

Parameters

bool $selected (default:true) true if this column is selected, false otherwise

Return Value

void