public function getFileContents()
 {
     $customJS = $this->javascript;
     $events = $this->getEventJavascript();
     if ($events != "") {
         $customJS[] = $events;
     }
     return string_array_to_string(fusion_arrays($this->pluginJavascript, $customJS));
 }
Exemple #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;
 }