Esempio n. 1
0
 public function getFileContents()
 {
     $customJS = $this->javascript;
     $events = $this->getEventJavascript();
     if ($events != "") {
         $customJS[] = $events;
     }
     return string_array_to_string(fusion_arrays($this->pluginJavascript, $customJS));
 }
Esempio n. 2
0
 public function getJavascript()
 {
     $props = $this->javascriptElements;
     foreach ($this->children as $child) {
         if ($child instanceof iJavascriptElement) {
             $props = fusion_arrays($child->getJavacript(), $props);
         }
     }
     return $props;
 }