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

render() public method

This method overrides the parent implementation.
public render ( $writer )
    public function render($writer)
    {
        if ($needSpan = $this->getSpanNeeded()) {
            $writer->addAttribute('id', $this->getClientId());
            $writer->renderBeginTag('span');
        }
        if ($this->getItemCount() > 0) {
            $this->_isEnabled = $this->getEnabled(true);
            $repeatInfo = $this->getRepeatInfo();
            $accessKey = $this->getAccessKey();
            $tabIndex = $this->getTabIndex();
            $this->_repeatedControl->setTextAlign($this->getTextAlign());
            $this->_repeatedControl->setAccessKey($accessKey);
            $this->_repeatedControl->setTabIndex($tabIndex);
            $this->setAccessKey('');
            $this->setTabIndex(0);
            $this->addAttributesToRender($writer);
            $repeatInfo->renderRepeater($writer, $this);
            $this->setAccessKey($accessKey);
            $this->setTabIndex($tabIndex);
        }
        if ($needSpan) {
            $writer->renderEndTag();
        }
        //checkbox skipped the client control script in addAttributesToRender
        if ($this->getEnabled(true) && $this->getEnableClientScript() && $this->getAutoPostBack() && $this->getPage()->getClientSupportsJavaScript()) {
            $this->renderClientControlScript($writer);
        }
    }