Prado\Web\UI\WebControls\TBaseValidator::renderClientControlScript PHP Method

renderClientControlScript() public method

If you override this method, be sure to call the parent implementation so that the event handlers can be invoked.
public renderClientControlScript ( $writer )
    public function renderClientControlScript($writer)
    {
        $scripts = $this->getPage()->getClientScript();
        if ($this->getEnableClientScript()) {
            $scripts->registerPradoScript('validator');
        }
        $formID = $this->getPage()->getForm()->getClientID();
        $scriptKey = "TBaseValidator:{$formID}";
        if ($this->getEnableClientScript() && !$scripts->isEndScriptRegistered($scriptKey)) {
            $manager['FormID'] = $formID;
            $options = TJavaScript::encode($manager);
            $scripts->registerEndScript($scriptKey, "new Prado.ValidationManager({$options});");
        }
        if ($this->getEnableClientScript()) {
            $this->registerClientScriptValidator();
        }
    }