/**
  * Constructor.
  * Initializes the type to 'Item'.
  */
 public function __construct()
 {
     $this->type = self::TYPE_ITEM;
     parent::__construct();
 }
Example #2
0
 /**
  * Creates a new callback control, sets the adapter to TActiveControlAdapter.
  * */
 public function __construct()
 {
     parent::__construct();
     $this->setAdapter(new TActiveControlAdapter($this));
 }
Example #3
0
 /**
  * Constructor.
  * @param integer zero-based index of the item in the item collection of datagrid
  * @param TListItemType item type
  */
 public function __construct($itemIndex, $dataSourceIndex, $itemType)
 {
     parent::__construct();
     $this->_itemIndex = $itemIndex;
     $this->_dataSourceIndex = $dataSourceIndex;
     $this->setItemType($itemType);
     if ($itemType === TListItemType::Header) {
         $this->setTableSection(TTableRowSection::Header);
     } else {
         if ($itemType === TListItemType::Footer) {
             $this->setTableSection(TTableRowSection::Footer);
         }
     }
 }