Properties

$grid_items

$grid_items : array

Array with list of grid items

Type

array

$grid_controls

$grid_controls : array

Array with list of grid controls (edit/delete/structure/manual)

Type

array

$grid_query

$grid_query : string

Type

string

$action

$action : 

Type

$table_name

$table_name : 

Type

$conditions

$conditions : 

Type

$controls_params

$controls_params : 

Type

$grid_object

$grid_object : object

Grid object

Type

object

$pager_params

$pager_params : 

Type

$render_user_id

$render_user_id : 

Type

Methods

__construct()

__construct(  $grid_object) 

Parameters

$grid_object

add_grid_item()

add_grid_item(string  $name) : void

Add grid item

Parameters

string $name

set_action()

set_action(  $action = '') 

Set action name

Parameters

$action

get_action()

get_action() 

Get action name

set_table_name()

set_table_name(  $table_name = '') 

Set table name

Parameters

$table_name

get_table_name()

get_table_name() 

Get table name

add_grid_control()

add_grid_control(string  $name) : void

Add grid control

Parameters

string $name

add_control_param()

add_control_param(  $name,   $value) 

Parameters

$name
$value

set_grid_url()

set_grid_url(  $url) 

Parameters

$url

set_grid_query()

set_grid_query(string  $query) : void

Set SQL-query for load records

Parameters

string $query

set_grid_table()

set_grid_table(  $table) 

Parameters

$table

set_conditions()

set_conditions(  $conditions) 

Parameters

$conditions

extended_items()

extended_items() 

get_grid_query()

get_grid_query() 

construct_query()

construct_query() 

parse_id_values_from_model()

parse_id_values_from_model(  $column_name,   $column_values,   $data_model) 

Parameters

$column_name
$column_values
$data_model

add_tags_params()

add_tags_params(  $params = array()) 

Parameters

$params

add_tagged_parms_to_where()

add_tagged_parms_to_where(  $where_array,   $tagged_params,   $table_name) 

Parameters

$where_array
$tagged_params
$table_name

set_render_user_id()

set_render_user_id(  $user_id) 

Parameters

$user_id

get_render_user_id()

get_render_user_id() 

construct_grid()

construct_grid() 

construct_grid_array()

construct_grid_array() 

getPager()

getPager() 

setPagerParams()

setPagerParams(  $params = array()) 

Parameters

$params

get_image()

get_image(  $item_id) 

Parameters

$item_id

_construct_grid()

_construct_grid(  $control_params = false,   $disable_mass_delete = false) 

Parameters

$control_params
$disable_mass_delete