b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: admin ] [ index: admin ] [ all elements ]

Procedural File: import-mt.php

Source Location: /blogs/inc/CONTROL/imports/import-mt.php

Page Details

This file implements importing of Movable Type entries into b2evolution.

This script was developed and tested with b2evolution 0.9.0.4 (on Sourceforge CVS) and Movable Type 2.64 and 2.661. It should work quite alright with b2evo 0.9 and later though.

This file is part of the b2evolution/evocms project - http://b2evolution.net/. See also http://sourceforge.net/projects/evocms/.

Author:  fplanque: Francois PLANQUE
Author:  blueyed: Daniel HAHLER
Version:  $Id: import-mt.php,v 1.8.2.7 2006/11/30 21:07:20 fplanque Exp $
Copyright:  (c)2003-2006 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact. Credits go to the WordPress team (@link http://wordpress.org), where I got the basic import-mt.php script with most of the core functions. Thank you!
Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Includes
require (login.php) [line 122]
[ Top ]

require ($inc_path.'_conf_error_page.php') [line 107]
[ Top ]

require ($conf_file) [line 103]
[ Top ]

require_once ($inc_path.'MODEL/files/_file.funcs.php') [line 69]

Set to true to get a lot of var_dumps, wrapped in pre tags

[ Top ]


Constants
IMPORT_SRC_DIR  [line 46]

IMPORT_SRC_DIR = $basepath

[ Top ]

MTEXPORT  [line 58]

MTEXPORT = ''

Enter the relative path of the import.txt file containing the MT entries.

If the file is called import.txt and it is in /admin, then this line should be:

  1.  define('MTEXPORT''import.txt');

You only need this to force a specific file instead of using a dropdown list (UI selection)


[ Top ]


Functions
cats_optionslist  [line 1294]

void cats_optionslist( $forcat  )
Parameters:
   $forcat: 


[ Top ]
cat_children2  [line 1328]

void cat_children2( $ccats, $blog_ID, $parent_ID, [ $level = 0]  )
Parameters:
   $ccats: 
   $blog_ID: 
   $parent_ID: 
   $level: 


[ Top ]
chooseexportfile  [line 1557]

void chooseexportfile( )


[ Top ]
debug_dump  [line 1546]

void debug_dump( $var, [ $title = '']  )
Parameters:
   $var: 
   $title: 


[ Top ]
dieerror  [line 1536]

void dieerror( string $message, [string $before = '']  )

Die with a message.

Parameters:
string   $message:  the message (wrapped in div and p tag of class error)
string   $before:  optional head


[ Top ]
fieldset_cats  [line 1205]

void fieldset_cats( )

associative array that maps MT cats to b2evo.

key is the MT category name. values: holds type and value: types:

  • 'blogid': blog_id, new name
  • 'catid': cat_id
  • 'defaultset': -
  • 'ignore': -



[ Top ]
import_data_extract_authors_cats  [line 1365]

void import_data_extract_authors_cats( )

extracts unique authors and cats from posts array



[ Top ]
renderer_list  [line 1443]

void renderer_list( )

Outputs a list of available renderers (not necessarily installed).



[ Top ]
ripline  [line 1599]

void ripline( $prefix, &$haystack  )
Parameters:
   $prefix: 
   &$haystack: 


[ Top ]
tidypostdata  [line 1610]

void tidypostdata( $string  )
Parameters:
   $string: 


[ Top ]


Documentation generated on Tue, 18 Dec 2007 19:07:23 +0100 by phpDocumentor 1.4.0