Prado\Web\UI\ActiveControls\TActiveListItemCollection::setControl PHP Method

setControl() public method

public setControl ( Prado\Web\UI\ActiveControls\IActiveControl $control )
$control Prado\Web\UI\ActiveControls\IActiveControl
    public function setControl(IActiveControl $control)
    {
        $this->_control = $control;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Creates a collection object to hold list items. A specialized
  * TActiveListItemCollection is created to allow the drop down list options
  * to be added.
  * This method may be overriden to create a customized collection.
  * @return TActiveListItemCollection the collection object
  */
 protected function createListItemCollection()
 {
     $collection = new TActiveListItemCollection();
     $collection->setControl($this);
     return $collection;
 }