public function get_templates() { if (empty($this->templates)) { $this->templates = BAPISync::getTemplates(); } return $this->templates; }
function urlHandler_bapitemplates_helper() { $c = BAPISync::getTemplates(); $j2 = rawurlencode($c); $js = ""; $js .= "var t = '" . $j2 . "';\r\n"; $js .= "t = decodeURIComponent(t);\r\n"; $js .= "BAPI.templates.set(t);\r\n"; return $js; }