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 TDataGridColumn

Description

Representes a DataGrid column

Located in /widget/datagrid/TDataGridColumn.php (line 16)


	
			
Method Summary
__construct ($name, $label, $align, [$width = NULL])
getDataProperty ($name)
getName ()
getProperty ($name)
setAction ($action, [$parameters = null])
setDataProperty ($name, $value)
setEditAction ($editaction)
setLabel ($label)
setProperty ($name, $value)
setTotalFunction (Callable$callback)
setTransformer (Callable$callback)
__set ($name, $value)
Methods
Constructor __construct (line 36)

Class Constructor

  • access: public
__construct ($name, $label, $align, [$width = NULL])
  • $name: = Name of the column in the database
  • $label: = Text label that will be shown in the header
  • $align: = Column align (left, center, right)
  • $width: = Column Width (pixels)
getAction (line 183)

Returns the action defined by set_action() method

  • return: action to be executed when the user clicks over the column header
  • access: public
getAction ()
getAlign (line 149)

Returns the column's align

  • access: public
getAlign ()
getDataProperties (line 101)

Return data properties

  • access: public
getDataProperties ()
getDataProperty (line 82)

Return a data property

  • access: public
getDataProperty ($name)
  • $name: Property Name
getEditAction (line 207)

Returns the action defined by setEditAction() method

  • return: action to be executed when the user clicks do edit the column
  • access: public
getEditAction ()
getLabel (line 132)

Returns the column's label

  • access: public
getLabel ()
getName (line 124)

Returns the database column's name

  • access: public
getName ()
getProperties (line 93)

Return column properties

  • access: public
getProperties ()
getProperty (line 70)

Return a column property

  • access: public
getProperty ($name)
  • $name: Property Name
getTotalFunction (line 245)

Returns the callback defined by the setTotalFunction()

  • access: public
getTotalFunction ()
getTransformer (line 228)

Returns the callback defined by the setTransformer()

  • access: public
getTransformer ()
getWidth (line 157)

Returns the column's width

  • access: public
getWidth ()
setAction (line 168)

Define the action to be executed when

the user clicks over the column header

  • access: public
setAction ($action, [$parameters = null])
  • $action: TAction object
  • $parameters: Action parameters
setDataProperty (line 61)

Define a data property

  • access: public
setDataProperty ($name, $value)
  • $name: Property Name
  • $value: Property Value
setEditAction (line 197)

Define the action to be executed when

the user clicks do edit the column

  • access: public
setEditAction ($editaction)
  • $editaction: A TDataGridAction object
setLabel (line 141)

Set the column's label

  • access: public
setLabel ($label)
  • $label: column label
setProperty (line 51)

Define a column header property

  • access: public
setProperty ($name, $value)
  • $name: Property Name
  • $value: Property Value
setTotalFunction (line 237)

Define a callback function to totalize column

  • access: public
setTotalFunction (Callable$callback)
  • Callable$callback: A function name of a method of an object
setTransformer (line 220)

Define a callback function to be applyed over the column's data

  • access: public
setTransformer (Callable$callback)
  • Callable$callback: A function name of a method of an object
__set (line 111)

Intercepts whenever someones assign a new property's value

  • access: public
__set ($name, $value)
  • $name: Property Name
  • $value: Property Value