Class: atkDGComponent
Source Location: /datagrid/class.atkdgcomponent.inc
Class atkDGComponent
Descendants
| atkDGEditControl |
The data grid no records found message. Can be used to render a simple message underneath the grid stating there are no records found in the database.
|
| atkDGIndex |
The data grid index. Can be used to render an alphanumeric index for an ATK data grid.
|
| atkDGLimit |
The data grid limit box. Can be used to render a limit box for an ATK data grid.
|
| atkDGList |
The data grid list component renders the recordlist.
|
| atkDGNoRecordsFound |
The data grid no records found message. Can be used to render a simple message underneath the grid stating there are no records found in the database.
|
| atkDGPaginator |
The data grid paginator. Can be used to render pagination links for an ATK data grid.
|
| atkDGRenderer |
The grid renderer is responsible for rendering the grid components and ofcourse the grid itself.
|
| atkDGSummary |
The data grid summary. Can be used to render a summary for an ATK data grid.
|
Method Summary
| mixed |
getOption() |
Returns the value for the component option with the given name. |
| atkUi |
getUi() |
Returns the UI object. |
| string |
render() |
Renders the component. |
| void |
text() |
Translate the given string using the grid node. |
Properties
The atkDataGrid.
API Tags:
The component options.
API Tags:
Methods
atkDGComponent __construct(
atkDataGrid
$grid, [array
$options = array()]
)
|
|
Constructor.
Parameters:
|
atkDataGrid |
$grid: |
grid |
|
array |
$options: |
component options |
API Tags:
Redefined in descendants as:
Returns the data grid.
API Tags:
| Return: | data grid |
| Access: | protected |
Returns the data grid node.
API Tags:
| Return: | node |
| Access: | protected |
mixed getOption(
string
$name, [
$fallback = null]
)
|
|
Returns the value for the component option with the given name.
Parameters:
|
string |
$name: |
option name |
|
|
$fallback: |
|
API Tags:
| Return: | option value |
| Access: | protected |
Returns the page object.
API Tags:
| Return: | page |
| Access: | protected |
Return the theme object.
API Tags:
| Return: | theme |
| Access: | protected |
Returns the UI object.
API Tags:
| Return: | ui |
| Access: | protected |
Renders the component.
API Tags:
| Return: | component HTML |
| Abstract: | |
| Access: | public |
Redefined in descendants as:
void text(
string
$string, [string
$fallback = ''], [boolean
$useDefault = true]
)
|
|
Translate the given string using the grid node.
The value of $fallback will be returned if no translation can be found. If you want NULL to be returned when no translation can be found then leave the fallback empty and set $useDefault to false.
Parameters:
|
string |
$string: |
string to translate |
|
string |
$fallback: |
fallback in-case no translation can be found |
|
boolean |
$useDefault: |
use default ATK translation if no translation can be found? |
API Tags: