private function buildJsDefs(PageParams $params, PageContext $ctxt) { $JS_CLASS_CONSTS = PsUtil::getClassConsts('PsConstJs'); $JS_CONSTS = $this->jsConsts(); $JS_COMMON = $this->jsCommon($ctxt); $JS_PAGE = $params->getJsParams(); $defs = json_encode(array_merge($JS_CONSTS, $JS_COMMON, $JS_PAGE)); $const = json_encode($JS_CLASS_CONSTS); $defs = "var defs={$defs}; var CONST={$const};"; $defs = PsHtml::linkJs(null, $defs); $this->LOGGER->infoBox('JS DEFS', $defs); return $defs; }
public function tplFetchParamsClass() { return PageParams::getClassName(); }