Esempio n. 1
0
 public static function importElements($elemtype, $path, $items, &$data, $config = array())
 {
     require_once JPATH_ADMINISTRATOR . '/components/' . CCK_COM . '/tables/' . $elemtype . '.php';
     if (count($items)) {
         foreach ($items as $item) {
             CCK_Import::importElement($elemtype, $path . $item, $data, $config);
         }
     }
 }
Esempio n. 2
0
 public static function _importMore($elemtype, &$data, $config = array())
 {
     if (file_exists($data['root'] . '/' . $data['elements'][$elemtype])) {
         $items = JFolder::files($data['root'] . '/' . $data['elements'][$elemtype], '\\.xml$');
         if (count($items)) {
             CCK_Import::importMore($elemtype, $data['root'] . '/' . $data['elements'][$elemtype] . '/', $items, $data);
         }
     }
 }