FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Grid Class Reference

Grid for display data. More...

Public Member Functions

 __construct ($base_uri, $title, $config=NULL, $template=FALSE)
 Grid construct.
 initialize ($config=array())
 Initialize grid with given config.
 __set ($key, $value)
 Sets values.
 add_new_button ($uri, $label, $options=array(), $help= '')
 Adds new button to the top of grid.
 add_back_button ($label)
 Adds back button to the top of grid.
 __call ($method, $args)
 Magic __call method.
 datasource ($items)
 Load satasource.
 render ()
 Renders grid.
 __toString ()
 Renders grid.

Protected Attributes

 $fields
 $action_fields
 $add_button = FALSE
 $back_button = FALSE
 $base_uri
 $template = 'grid_template'
 $title
 $label = NULL
 $use_paginator = true
 $use_selector = true
 $separator = '<br /><br />'
 $show_labels = true
 $selector_increace = 30
 $selector_min = 10
 $selector_max_multiplier = 5
 $current = 10
 $style = 'classic'
 $uri_segment = 3
 $items_per_page = 10
 $total_items = 0
 $base_url = ''
 $order_by
 $a_rec_per_page
 $variables
 $order_by_direction
 $limit_results
 $record_per_page = NULL
 $url_array_ofset = 0
 $query_string
 $filter = ''
 $form = FALSE
 $form_submit_value = ''
 $form_extra_buttons = array()
 $buttons = array()
 $id = NULL
 $method = 'post'

Detailed Description

Grid for display data.

Field Field(string $column) Action_Field action_field(string $column) Link_Field link_field(string $column, string $column2) Order_Link_Field order_link_field(string $column, string $column2) Order_Field order_field(string $column) Order_callback_Field order_callback_field(string $column) Callback_Field callback_field(string $column) Grouped_Action_Field grouped_action_field(string $column) Order_Form_Field order_form_field(string $column)

Constructor & Destructor Documentation

Grid::__construct (   $base_uri,
  $title,
  $config = NULL,
  $template = FALSE 
)

Grid construct.

Parameters
type$base_uri
type$title
type$config
type$template

Member Function Documentation

Grid::__call (   $method,
  $args 
)

Magic __call method.

Creates a new form element object.

Exceptions
Kohana_Exception
Parameters
stringinput type
stringinput name
Returns
object
Grid::__set (   $key,
  $value 
)

Sets values.

Parameters
string$key
mixed$value
Grid::__toString ( )

Renders grid.

Returns
string
Grid::add_back_button (   $label)

Adds back button to the top of grid.

Parameters
string$labelLabel of button
Grid::add_new_button (   $uri,
  $label,
  $options = array(),
  $help = '' 
)

Adds new button to the top of grid.

Parameters
type$uriURI of button
type$labelLabel of button
type$optionsOptions
type$helpHelp hint
Grid::datasource (   $items)

Load satasource.

Parameters
object$items
Grid::initialize (   $config = array())

Initialize grid with given config.

Parameters
array$config
Grid::render ( )

Renders grid.

Returns
string

The documentation for this class was generated from the following file: