Public Member Functions |
| init () |
| importFields ($model, $fields=undefined) |
| defaultTemplate () |
| getExpanderId () |
| getColumn ($column) |
| hasColumn ($column) |
| removeColumn ($name) |
| addButton ($label, $name=null, $return_button=false) |
| addQuickSearch ($fields, $class='QuickSearch') |
| makeSortable ($db_sort=null) |
| makeTitle () |
| render () |
| format_number ($field) |
| format_text ($field) |
| format_html ($field) |
| init_money ($field) |
| init_real ($field) |
| init_fullwidth ($field) |
| format_fullwidth ($field) |
| format_money ($field) |
| format_totals_number ($field) |
| format_totals_money ($field) |
| format_totals_real ($field) |
| format_totals_text ($field) |
| format_time ($field) |
| format_date ($field) |
| format_datetime ($field) |
| format_timestamp ($field) |
| format_nowrap ($field) |
| format_wrap ($field) |
| format_template ($field) |
| format_widget ($field, $widget, $params=array(), $widget_json=null) |
| format_expander_widget ($field, $column) |
| format_expander ($field, $column) |
| init_expander_widget ($field) |
| init_expander ($field) |
| _getFieldType ($field) |
| _inlineUpdate ($field, $id, $value) |
| format_inline ($field, $idfield='id') |
| format_nl2br ($field) |
| format_order ($field, $idfield='id') |
| init_link ($field) |
| format_link ($field) |
| _performDelete ($id) |
| format_delete ($field) |
| init_button ($field) |
| setButtonClass ($class) |
| init_delete ($field) |
| _move_delete ($grid, $field) |
| init_confirm ($field) |
| init_prompt ($field) |
| format_button ($field) |
| format_confirm ($field) |
| format_prompt ($field) |
| init_boolean ($field) |
| format_boolean ($field) |
| format_checkbox ($field) |
| format_image ($field) |
| addRecordOrder ($field, $table='') |
| staticSortCompare ($row1, $row2) |
| applySorting ($i, $order, $desc) |
| getIterator () |
| setTemplate ($template) |
| getFieldStyle ($field, $id) |
| getRowTitle () |
| getFieldContent ($field, $id) |
| applyTDParams ($field, $totals=false) |
| setTotalsTitle ($field, $title="Total:") |
| formatTotalsRow () |
| updateTotals () |
| addPaginator ($ipp=25) |
| setWidth ($width) |
| setNoRecords ($message) |
| getCurrentIndex ($idfield='id') |
| setTDParam ($field, $path, $value) |
| setTabMovesDown ($down=true) |
| setShowSubmit ($show=true) |
| setInlineProperties ($props) |
| addOrder () |
| addSelectable ($field) |
| addFormatter ($field, $formatter) |
| setFormatter ($field, $formatter) |
| getAllTDParams () |
Data Fields |
| $last_column |
| $sortby = '0' |
| $sortby_db = null |
| $not_found = false |
| $displayed_rows = 0 |
| $totals_t = null |
| $totals_value_na = '-' |
| $data = null |
| $title_col = array() |
| $js_widget = 'ui.atk4_grid' |
| $js_widget_arguments = array() |
| $default_controller = 'MVCGrid' |
Protected Attributes |
| $no_records_message = "No matching records to display" |
| $tab_moves_down = false |
| $show_submit = true |
| $tdparam = array() |
This is a Basic Grid implementation, which produces fully functional HTML grid capable of filtering, sorting, paginating and using multiple column formatters.
Use: $grid=$this->add('Grid'); $grid->setModel('User'); See http://agiletoolkit.org/about/license
Default render. Generates HTML presentation of the view based on $this->template and passes it to output() function which then inserts output into parent's template
For visual objects, their default action while rendering is rely on SMlite engine. For sake of simplicity and speed you can redefine this method with a simple call
Reimplemented from CompleteLister.
Reimplemented in InfoWindow.
$tdparam = array() [protected] |
$tdparam property is an array with cell parameters specified in td tag. This should be a hash: 'param_name'=>'param_value' Following parameters treated and processed in a special way: 1) 'style': nested array, style parameter. items of this nested array converted to a form of style: style="param_name: param_value; param_name: param_value" 2) OBSOLTE! wrap: possible values are true|false; if true, 'wrap' is added use style/white-space property or simply format_wrap()
All the rest are not checked and converted to a form of param_name="param_value"
This is a tree-like array with the following structure: array( [level1]=>dataset_row=array( [level2]=>field=array( [level3]=>tdparam_elements=array( param_name=>param_value ) ) ) )