예제 #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));
 }
예제 #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;
 }