Column
class Column extends Child
Properties
public | $label | Column label. | |
public | $desc | Column description. | |
public | $raw | Should we excape the value of the column? | |
public | $listable | Should we show the column in the table? | |
public | $editable | Should we show the column in the edit form? | |
public | $disabled | Can we edit the value in the form? | |
public | $searchable | Should we use this column for searching? | |
public | $sortable | Can we sort the table by this column? | |
public | $limit | Max length of value to be shown in the table. | |
public | $input | Input type for the column editation. | |
public | $listformat | fromat for listing | |
public | $getformat | format for editing | |
public | $setformat | format for updating | |
public | $validate | validation callback | |
public | $default | columns default value |
Public Methods
Extract value of the column from $row array
Protected Methods
Private Methods
Details
in Child at line 28
final
__call(string $name, array $arguments)
in Child at line 33
final void
_setKey(string $key)
in Child at line 37
final string
_getKey()
in Child at line 41
final void
_setNext(string|null $key)
in Child at line 45
final string|null
_getNext()
in Child at line 49
final void
_setPrev(string|null $key)
in Child at line 53
final string|null
_getPrev()
at line 86
final string
getName()
Get internal name of the column.
at line 93
final string|null
getValue(array $row, $forEditing = false)
Extract value of the column from $row array
at line 109
final
evalProperty(string $prop, array $row = [])
Eval property
at line 125
raw()
Output raw value (i.e. HTML)
at line 133
default($value)
Set default value
at line 141
escaped()
Output escaped value.
at line 149
nonlistable()
Do not show the column in the table.
at line 157
listable()
Show the column in the table.
at line 165
nonsearchable()
Do not use the column for searching.
at line 173
searchable()
Use the column for searching.
at line 181
nonsortable()
Do not sort by the column.
at line 189
sortable()
Use the column for sorting.
at line 197
noneditable()
Hide the column in the edit form.
at line 205
editable()
Show the column in the edit form.
at line 213
disabled()
Disable editing column's value.
at line 221
enabled()
Enable editing column's value.
at line 230
limit($len)
Max length of value to be shown in the table.
Doesn't have any effect on raw (unescaped) columns.
at line 238
input($type)
Set the type of input.
at line 247
password()
Set the type of input to password Add nonlistable flag
at line 256
textarea()
Set the type of input to textarea.
at line 264
select($options = [])
Set the type of input to select.
at line 273
hidden()
Shortcut for nonlistable && noneditable && disabled
at line 283
list($func)
Format for listing
at line 291
get($func)
Format for editing
at line 299
set($func)
Format user input for updating the entry
at line 307
validate($func)
Validate user input