Prado\Web\UI\TPage::getClientScript PHP 메소드

getClientScript() 공개 메소드

public getClientScript ( ) : TClientScriptManager
리턴 TClientScriptManager client script manager
    public function getClientScript()
    {
        if (!$this->_clientScript) {
            $className = $classPath = $this->getService()->getClientScriptManagerClass();
            if ($className !== '\\Prado\\Web\\UI\\TClientScriptManager' && !is_subclass_of($className, '\\Prado\\Web\\UI\\TClientScriptManager')) {
                throw new THttpException(404, 'page_csmanagerclass_invalid', $className);
            }
            $this->_clientScript = new $className($this);
        }
        return $this->_clientScript;
    }