Changeset 8645 for trunk/wp-admin/import/dotclear.php
- Timestamp:
- 08/14/2008 06:30:38 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/dotclear.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/dotclear.php
r7645 r8645 1 1 <?php 2 /* 3 * DotClear import plugin 4 * by Thomas Quinot - http://thomas.quinot.org/ 2 /** 3 * DotClear Importer 4 * 5 * @package WordPress 6 * @subpackage Importer 7 * @author Thomas Quinot 8 * @link http://thomas.quinot.org/ 5 9 */ 6 10 … … 11 15 if(!function_exists('get_comment_count')) 12 16 { 17 /** 18 * Get the comment count for posts. 19 * 20 * @package WordPress 21 * @subpackage Dotclear_Import 22 * 23 * @param int $post_ID Post ID 24 * @return int 25 */ 13 26 function get_comment_count($post_ID) 14 27 { … … 20 33 if(!function_exists('link_exists')) 21 34 { 35 /** 36 * Check whether link already exists. 37 * 38 * @package WordPress 39 * @subpackage Dotclear_Import 40 * 41 * @param string $linkname 42 * @return int 43 */ 22 44 function link_exists($linkname) 23 45 { … … 41 63 // 42 64 65 /** 66 * @package WordPress 67 * @subpackage Dotclear_Import 68 * 69 * @param string $char 70 * @return string 71 */ 43 72 function valid_1byte($char) { 44 73 if(!is_int($char)) return false; … … 46 75 } 47 76 77 /** 78 * @package WordPress 79 * @subpackage Dotclear_Import 80 * 81 * @param string $char 82 * @return string 83 */ 48 84 function valid_2byte($char) { 49 85 if(!is_int($char)) return false; … … 51 87 } 52 88 89 /** 90 * @package WordPress 91 * @subpackage Dotclear_Import 92 * 93 * @param string $char 94 * @return string 95 */ 53 96 function valid_3byte($char) { 54 97 if(!is_int($char)) return false; … … 56 99 } 57 100 101 /** 102 * @package WordPress 103 * @subpackage Dotclear_Import 104 * 105 * @param string $char 106 * @return string 107 */ 58 108 function valid_4byte($char) { 59 109 if(!is_int($char)) return false; … … 61 111 } 62 112 113 /** 114 * @package WordPress 115 * @subpackage Dotclear_Import 116 * 117 * @param string $char 118 * @return string 119 */ 63 120 function valid_nextbyte($char) { 64 121 if(!is_int($char)) return false; … … 66 123 } 67 124 125 /** 126 * @package WordPress 127 * @subpackage Dotclear_Import 128 * 129 * @param string $string 130 * @return string 131 */ 68 132 function valid_utf8($string) { 69 133 $len = strlen($string); … … 93 157 } 94 158 159 /** 160 * @package WordPress 161 * @subpackage Dotclear_Import 162 * 163 * @param string $s 164 * @return string 165 */ 95 166 function csc ($s) { 96 167 if (valid_utf8 ($s)) { … … 101 172 } 102 173 174 /** 175 * @package WordPress 176 * @subpackage Dotclear_Import 177 * 178 * @param string $s 179 * @return string 180 */ 103 181 function textconv ($s) { 104 182 return csc (preg_replace ('|(?<!<br />)\s*\n|', ' ', $s)); … … 106 184 107 185 /** 108 The Main Importer Class 109 **/ 186 * Dotclear Importer class 187 * 188 * Will process the WordPress eXtended RSS files that you upload from the export 189 * file. 190 * 191 * @package WordPress 192 * @subpackage Importer 193 * 194 * @since unknown 195 */ 110 196 class Dotclear_Import { 111 197 … … 743 829 744 830 $dc_import = new Dotclear_Import(); 831 745 832 register_importer('dotclear', __('DotClear'), __('Import categories, users, posts, comments, and links from a DotClear blog.'), array ($dc_import, 'dispatch')); 833 746 834 ?>
Note: See TracChangeset
for help on using the changeset viewer.