Source for file TDBArrowStep.php
Documentation is available at TDBArrowStep.php
use
Adianti \
Widget \
Wrapper \
AdiantiDatabaseWidgetTrait ;
* @author Matheus Agnes Dias
* @author Pablo Dall'Oglio
* @copyright Copyright (c) 2006-2014 Adianti Solutions Ltd. (http://www.adianti.com.br)
* @license http://www.adianti.com.br/framework-license
protected $items ; // array containing the combobox options
use
AdiantiDatabaseWidgetTrait ;
* @param $name widget's name
* @param $database database name
* @param $model model class name
* @param $key table field to be used as key in the combo
* @param $value table field to be listed in the combo
* @param $ordercolumn column to order the fields (optional)
* @param $criteria criteria (TCriteria object) to filter the model (optional)
public function __construct ( $name , $database , $model , $key , $value , $ordercolumn =
NULL , TCriteria $criteria =
NULL )
// executes the parent class constructor
$this -> database =
$database ;
$this -> ordercolumn =
$ordercolumn ;
$this -> criteria =
$criteria ;
$this -> colorcolumn =
$colorcolumn ;
parent :: setItems ( self :: getItemsFromModel ( $this -> database , $this -> model , $this -> key , $this -> value , $this -> ordercolumn , $this -> criteria ) ) ;
parent :: setColorItems ( self :: getItemsFromModel ( $this -> database , $this -> model , $this -> key , $this -> colorcolumn , $this -> ordercolumn , $this -> criteria ) ) ;