menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TDataGrid

Description

DataGrid Widget: Allows to create datagrids with rows, columns and actions

Located in /widget/datagrid/TDataGrid.php (line 25)

TElement
   |
   --TTable
      |
      --TDataGrid
Direct descendents
Class Description
TQuickGrid Create quick datagrids through its simple interface
Variable Summary
mixed $actions
mixed $actionWidth
mixed $columns
mixed $groupColumn
mixed $groupCount
mixed $groupMask
mixed $height
mixed $objects
mixed $popcontent
mixed $popover
mixed $poptitle
mixed $rowcount
mixed $scrollable
mixed $tbody
mixed $thead
Method Summary
addAction ($action)
addActionGroup ($object)
addColumn ($object)
addItem ($object)
addItems ($objects)
clear ([$preserveHeader = TRUE])
createModel ([$create_header = true])
enablePopover ($title, $content)
getBody ()
getHead ()
getRow ($position)
getRowIndex ($attribute, $value)
insert ($position, $content)
setActionWidth ($width)
setGroupColumn ($column, $mask)
setHeight ($height)
setId ($id)
setPageNavigation ($pageNavigation)
show ()
Variables
mixed $actions (line 28)
  • access: protected
mixed $actionWidth (line 45)
  • access: protected
mixed $action_groups (line 29)
  • access: protected
mixed $columns (line 27)
  • access: protected
mixed $columnValues (line 48)
  • access: protected
mixed $defaultClick (line 37)
  • access: protected
mixed $groupColumn (line 38)
  • access: protected
mixed $groupContent (line 39)
  • access: protected
mixed $groupCount (line 46)
  • access: protected
mixed $groupMask (line 40)
  • access: protected
mixed $groupRowCount (line 47)
  • access: protected
mixed $height (line 33)
  • access: protected
mixed $modelCreated (line 35)
  • access: protected
mixed $objects (line 44)
  • access: protected
mixed $pageNavigation (line 36)
  • access: protected
mixed $popcontent (line 43)
  • access: protected
mixed $popover (line 41)
  • access: protected
mixed $poptitle (line 42)
  • access: protected
mixed $rowcount (line 30)
  • access: protected
mixed $scrollable (line 34)
  • access: protected
mixed $tbody (line 32)
  • access: protected
mixed $thead (line 31)
  • access: protected

Inherited Variables

Inherited from TElement

TElement::$children
Methods
Constructor __construct (line 53)

Class Constructor

  • access: public
__construct ()

Redefinition of:
TTable::__construct()
Class Constructor
addAction (line 174)

Add an Action to the DataGrid

  • access: public
addAction ($action)
  • $action: A TDataGridAction object
addActionGroup (line 195)

Add an Action Group to the DataGrid

  • access: public
addActionGroup ($object)
  • $object: A TDataGridActionGroup object
addColumn (line 150)

Add a Column to the DataGrid

  • access: public
addColumn ($object)
  • $object: A TDataGridColumn object
addItem (line 440)

Add an object to the DataGrid

  • access: public
addItem ($object)
  • $object: An Active Record Object
addItems (line 425)

Add objects to the DataGrid

  • access: public
addItems ($objects)
  • $objects: An array of Objects
clear (line 227)

Clear the DataGrid contents

clear ([$preserveHeader = TRUE])
  • $preserveHeader
createModel (line 266)

Creates the DataGrid Structure

  • access: public
createModel ([$create_header = true])
  • $create_header
disableDefaultClick (line 132)

disable the default click action

  • access: public
disableDefaultClick ()
enablePopover (line 85)

Enable popover

  • access: public
enablePopover ($title, $content)
  • $title: Title
  • $content: Content
getBody (line 408)

Return tbody

  • access: public
getBody ()
getColumns (line 165)

Returns an array of TDataGridColumn

  • access: public
getColumns ()
getHead (line 400)

Return thead

  • access: public
getHead ()
getItems (line 758)

Return datagrid items

  • access: public
getItems ()
getPageNavigation (line 977)

Return the assigned PageNavigation object

  • return: object
getPageNavigation ()
getRow (line 903)

Return the row by position

  • access: public
getRow ($position)
  • $position: Row position
getRowIndex (line 886)

Find the row index by object attribute

  • access: public
getRowIndex ($attribute, $value)
  • $attribute: Object attribute
  • $value: Object value
getTotalColumns (line 210)

Returns the total columns

  • access: public
getTotalColumns ()
getWidth (line 912)

Returns the DataGrid's width

  • return: integer containing the DataGrid's width
  • access: public
getWidth ()
insert (line 416)

insert content

  • access: public
insert ($position, $content)
  • $position
  • $content

Redefinition of:
TElement::insert()
Insert an child element
isScrollable (line 108)

Returns if datagrid is scrollable

  • access: public
isScrollable ()
makeScrollable (line 95)

Make the datagrid scrollable

  • access: public
makeScrollable ()
setActionWidth (line 124)

Set the column action width

  • access: public
setActionWidth ($width)
  • $width
setGroupColumn (line 218)

Set the group column for break

  • access: public
setGroupColumn ($column, $mask)
  • $column
  • $mask
setHeight (line 141)

Define the Height

setHeight ($height)
  • $height: An integer containing the height
setId (line 75)

Set id

  • access: public
setId ($id)
  • $id
setPageNavigation (line 968)

Assign a PageNavigation object

setPageNavigation ($pageNavigation)
  • $pageNavigation: object
show (line 941)

Shows the DataGrid

show ()

Redefinition of:
TElement::show()
Shows the tag

Inherited Methods

Inherited From TTable

TTable::__construct()
TTable::addRow()
TTable::addRowSet()
TTable::addSection()
TTable::fromData()

Inherited From TElement

TElement::__construct()
TElement::add()
TElement::clearChildren()
TElement::close()
TElement::del()
TElement::get()
TElement::getChildren()
TElement::getContents()
TElement::getIsWrapped()
TElement::getName()
TElement::getProperties()
TElement::getProperty()
TElement::insert()
TElement::open()
TElement::setIsWrapped()
TElement::setName()
TElement::setProperty()
TElement::setUseLineBreaks()
TElement::setUseSingleQuotes()
TElement::show()
TElement::tag()
TElement::__clone()
TElement::__get()
TElement::__isset()
TElement::__set()
TElement::__toString()
TElement::__unset()