Source for file mvblog_import.php
Documentation is available at mvblog_import.php
* MvBlog -- An open source no-nosense blogtool
* Copyright (C) 2005-2007, Michiel van Baak
* Michiel van Baak <mvanbaak@users.sourceforge.net>
* See http://dev.mvblog.org for more information on MvBlog.
* That page also provides Bugtrackers, Filereleases etc.
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
* @author Michiel van Baak
* @copyright 2005-2007 Michiel van Baak
* Class that holds methods that can be used to import other blogs
* The supported blogtools
* Class constructor that populates the supported_blogs variable.
* @todo read the supported blogtools from classes available
* Show a list with all supported blogtools with a link to the module main info page
echo
"Here are the supported import scripts. Please click on one.<br />";
echo
"<a href=\"index.php?action=import&type=".
$v.
"\">".
$v.
"</a><br />";
* Create an object for the selected blogtool import
* @param string $type The blogtool to import from. Can be 'wordpress' only for now
* @param array $options Additional options to pass to the import module
* @return bool true on success, false on failure
public function run_module($type, $options =
array()) {
echo
gettext("Unsupported import type");
$class =
"MvBlog_import_".
$type;
$importtype =
new $class($options);
Documentation generated on Fri, 28 Dec 2007 13:17:40 +0100 by phpDocumentor 1.4.1