Prado\Web\UI\WebControls\TCheckBoxList::__construct PHP Method

__construct() public method

Remember to call parent implementation if you override this method
public __construct ( )
    public function __construct()
    {
        parent::__construct();
        $this->_repeatedControl = $this->createRepeatedControl();
        $this->_repeatedControl->setEnableViewState(false);
        $this->_repeatedControl->setID('c0');
        $this->getControls()->add($this->_repeatedControl);
    }

Usage Example

コード例 #1
0
 /**
  * Creates a new callback control, sets the adapter to
  * TActiveListControlAdapter. If you override this class, be sure to set the
  * adapter appropriately by, for example, by calling this constructor.
  */
 public function __construct()
 {
     $this->setAdapter(new TActiveListControlAdapter($this));
     $this->setAutoPostBack(true);
     parent::__construct();
 }