Prado\Web\UI\ActiveControls\TDraggable::addAttributesToRender PHP Метод

addAttributesToRender() защищенный Метод

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        parent::addAttributesToRender($writer);
        $cs = $this->getPage()->getClientScript();
        if ($this->getGhosting() == TDraggableGhostingOptions::SuperGhosting) {
            $cs->registerPradoScript('dragdropextra');
        } else {
            $cs->registerPradoScript('dragdrop');
        }
        $writer->addAttribute('id', $this->getClientID());
        $options = TJavaScript::encode($this->getPostBackOptions());
        $class = $this->getClientClassName();
        $code = "new {$class}('{$this->getClientId()}', {$options}) ";
        $cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
    }