Esempio n. 1
0
 public function get_templates()
 {
     if (empty($this->templates)) {
         $this->templates = BAPISync::getTemplates();
     }
     return $this->templates;
 }
Esempio n. 2
0
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;
}