Dotclear 2.24
|
Public Member Functions | |
init () | |
resetVars () | |
process (string $do) | |
gui () | |
![]() | |
__construct () | |
init () | |
getURL (bool $escape=false) | |
process (string $do) | |
gui () | |
Protected Member Functions | |
setInfo () | |
guiprocess (string $do) | |
imForm (int $step, string $legend, ?string $submit_value=null) | |
error (Exception $e) | |
db () | |
cleanStr (string $str) | |
importUsers () | |
importCategories () | |
importLinks () | |
importPosts (&$percent) | |
importPost ($rs, $db) | |
importComments (string $post_id, int $new_post_id, $db) | |
importPings (string $post_id, int $new_post_id, $db) | |
importMeta (string $post_id, int $new_post_id, $db) | |
![]() | |
setInfo () | |
progressBar (float $percent) | |
autoSubmit () | |
congratMessage () | |
Protected Attributes | |
$con | |
$prefix | |
$blog_id | |
$action = null | |
$step = 1 | |
$post_offset = 0 | |
$post_limit = 20 | |
$post_count = 0 | |
$has_table = [] | |
$vars | |
$base_vars | |
![]() | |
$import_url | |
$export_url | |
$url | |
Additional Inherited Members | |
![]() | |
$type | |
$id | |
$name | |
$description | |
|
protected |
Sets the module information.
Reimplemented from dcIeModule.
init | ( | ) |
resetVars | ( | ) |
References $base_vars.
Referenced by guiprocess().
process | ( | string | $do | ) |
|
protected |
Processes the import/export with GUI feedback.
We handle process in another way to always display something to user
string | $do | action |
References dcCore\app(), db(), dcIeModule\getURL(), importCategories(), importLinks(), importPosts(), importUsers(), dcIeModule\progressBar(), http\redirect(), and resetVars().
Referenced by gui().
gui | ( | ) |
GUI for import/export module
Reimplemented from dcIeModule.
References dcCore\app(), dcIeModule\autoSubmit(), form\combo(), dcIeModule\congratMessage(), error(), html\escapeHTML(), form\field(), guiprocess(), form\hidden(), imForm(), form\number(), and form\password().
|
protected |
Return a simple form for step by step process
int | $step | The step |
string | $legend | The legend |
string | $submit_value | The submit value |
References $step, dcCore\app(), dcIeModule\getURL(), and form\hidden().
Referenced by gui().
|
protected |
|
protected |
DB init
Exception |
References dbLayer\init().
Referenced by guiprocess(), importCategories(), importLinks(), importPosts(), and importUsers().
|
protected |
Clean a string
string | $str | The string |
References text\cleanUTF8(), and text\toUTF8().
Referenced by importCategories(), importComments(), importLinks(), importMeta(), importPings(), and importPost().
|
protected |
User import
References dcCore\app(), crypt\createPassword(), db(), dcBlog\POST_PENDING, dcBlog\POST_PUBLISHED, and dcAuth\USER_TABLE_NAME.
Referenced by guiprocess().
|
protected |
Categories import
References $blog_id, dcCategories\CATEGORY_TABLE_NAME, cleanStr(), and db().
Referenced by guiprocess().
|
protected |
Blogroll import
References $blog_id, cleanStr(), db(), and dcBlogroll\LINK_TABLE_NAME.
Referenced by guiprocess().
|
protected |
Entries import
int | $percent | The progress (in %) |
References $post_count, $post_limit, db(), importPost(), and dcBlog\POST_TABLE_NAME.
Referenced by guiprocess().
|
protected |
Entry import
mixed | $rs | The record |
mixed | $db | The database |
References $blog_id, cleanStr(), html\decodeEntities(), importComments(), importMeta(), importPings(), dcBlog\POST_TABLE_NAME, and text\splitWords().
Referenced by importPosts().
|
protected |
Comments import
string | $post_id | The post identifier |
int | $new_post_id | The new post identifier |
mixed | $db | The database |
References cleanStr(), dcBlog\COMMENT_JUNK, dcBlog\COMMENT_PUBLISHED, dcBlog\COMMENT_TABLE_NAME, dcBlog\COMMENT_UNPUBLISHED, dcBlog\POST_TABLE_NAME, and text\splitWords().
Referenced by importPost().
|
protected |
Pings import
string | $post_id | The post identifier |
int | $new_post_id | The new post identifier |
mixed | $db | The database |
References dcIeModule\$url, cleanStr(), and dcTrackback\PING_TABLE_NAME.
Referenced by importPost().
|
protected |
Meta import
string | $post_id | The post identifier |
int | $new_post_id | The new post identifier |
mixed | $db | The database |
References dcCore\app(), and cleanStr().
Referenced by importPost().
|
protected |
|
protected |
|
protected |
Referenced by importCategories(), importLinks(), and importPost().
|
protected |
|
protected |
Referenced by imForm().
|
protected |
|
protected |
Referenced by importPosts().
|
protected |
Referenced by importPosts().
|
protected |
|
protected |
|
protected |
Referenced by init(), and resetVars().