Prado\Web\UI\WebControls\TColorPicker::publishColorPickerAssets PHP 메소드

publishColorPickerAssets() 보호된 메소드

Publish the color picker assets.
protected publishColorPickerAssets ( )
    protected function publishColorPickerAssets()
    {
        $cs = $this->getPage()->getClientScript();
        $key = "prado:" . get_class($this);
        $imgs['button.gif'] = $this->getAssetUrl('button.gif');
        $imgs['background.png'] = $this->getAssetUrl('background.png');
        $options = TJavaScript::encode($imgs);
        $code = "Prado.WebUI.TColorPicker.UIImages = {$options};";
        $cs->registerEndScript($key, $code);
        $cs->registerPradoScript("colorpicker");
        $url = $this->getAssetUrl($this->getColorPickerStyle() . '.css');
        if (!$cs->isStyleSheetFileRegistered($url)) {
            $cs->registerStyleSheetFile($url, $url);
        }
    }