public function copyAssets()
 {
     $syslangpath = JPATH_SITE . '/language';
     $languages = xJLanguageHandler::getSystemLanguages();
     $langpath = JPATH_SITE . '/components/com_acctexp/services/' . $this->type . '/language';
     foreach ($languages as $l) {
         $lpath = $langpath . '/' . $l;
         if (!is_dir($lpath) || !is_dir($syslangpath . '/' . $l)) {
             continue;
         }
         $filename = $l . '.com_acctexp.services.' . $this->type . '.ini';
         $source = $lpath . '/' . $filename;
         if (!file_exists($source)) {
             continue;
         }
         $dest = $syslangpath . '/' . $l . '/' . $filename;
         copy($source, $dest);
     }
 }
 public function copyAssets()
 {
     $handle = str_replace('mi_', '', $this->class_name);
     $syslangpath = JPATH_SITE . '/language';
     $languages = xJLanguageHandler::getSystemLanguages();
     $langpath = JPATH_SITE . '/components/com_acctexp/micro_integration/' . $handle . '/language';
     foreach ($languages as $l) {
         $lpath = $langpath . '/' . $l;
         if (is_dir($lpath) && is_dir($syslangpath . '/' . $l)) {
             $filename = $l . '.com_acctexp.mi.' . $handle . '.ini';
             $source = $lpath . '/' . $filename;
             if (!file_exists($source)) {
                 continue;
             }
             $dest = $syslangpath . '/' . $l . '/' . $filename;
             copy($source, $dest);
         }
     }
 }
 public function copyAssets()
 {
     $png = $this->processor_name . '.png';
     $source = $this->path . '/media/images/' . $png;
     if (file_exists($source)) {
         $dest = JPATH_SITE . '/media/com_acctexp/images/site/' . $png;
         if (!file_exists($dest) && file_exists($source)) {
             copy($source, $dest);
         }
     }
     $syslangpath = JPATH_SITE . '/language';
     $languages = xJLanguageHandler::getSystemLanguages();
     $langpath = $this->path . '/language';
     foreach ($languages as $l) {
         $lpath = $langpath . '/' . $l;
         if (is_dir($lpath) && is_dir($syslangpath . '/' . $l)) {
             $filename = $l . '.com_acctexp.processors.' . $this->processor_name . '.ini';
             $source = $lpath . '/' . $filename;
             if (!file_exists($source)) {
                 continue;
             }
             $dest = $syslangpath . '/' . $l . '/' . $filename;
             copy($source, $dest);
         }
     }
 }