示例#1
0
文件: app.php 项目: hamby/SEBLOD
 protected static function _exportCategories($value, $glue, &$data)
 {
     $values = JCckDev::fromSTRING($value, $glue);
     $value = array();
     foreach ($values as $v) {
         $table = JTable::getInstance('category');
         if ($v > 0) {
             $table->load($v);
         }
         $table->name = $data['root_category'] . '_' . str_replace('-', '_', $table->alias);
         $value[] = $table->name;
         CCK_Export::exportContent('joomla_category', $table, $data, $extensions, 0);
     }
     return implode($glue, $value);
 }