| @@ -18,88 +18,64 @@ | ||
| 18 | 18 | */ |
| 19 | 19 | class BBP_Converter { |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * Number of rows. | |
| 23 | - * | |
| 24 | - * @var int | |
| 22 | + * @var int Number of rows | |
| 25 | 23 | */ |
| 26 | 24 | public $max = 0; |
| 27 | 25 | |
| 28 | 26 | /** |
| 29 | - * Start. | |
| 30 | - * | |
| 31 | - * @var int | |
| 27 | + * @var int Start | |
| 32 | 28 | */ |
| 33 | 29 | public $start = 0; |
| 34 | 30 | |
| 35 | 31 | /** |
| 36 | - * Step in converter process. | |
| 37 | - * | |
| 38 | - * @var int | |
| 32 | + * @var int Step in converter process | |
| 39 | 33 | */ |
| 40 | 34 | public $step = 0; |
| 41 | 35 | |
| 42 | 36 | /** |
| 43 | - * Number of rows. | |
| 44 | - * | |
| 45 | - * @var int | |
| 37 | + * @var int Number of rows | |
| 46 | 38 | */ |
| 47 | 39 | public $rows = 0; |
| 48 | 40 | |
| 49 | 41 | /** |
| 50 | - * Maximum number of converter steps. | |
| 51 | - * | |
| 52 | - * @var int | |
| 42 | + * @var int Maximum number of converter steps | |
| 53 | 43 | */ |
| 54 | 44 | public $max_steps = 17; |
| 55 | 45 | |
| 56 | 46 | /** |
| 57 | - * Number of rows in the current step. | |
| 58 | - * | |
| 59 | - * @var int | |
| 47 | + * @var int Number of rows in the current step | |
| 60 | 48 | */ |
| 61 | 49 | public $rows_in_step = 0; |
| 62 | 50 | |
| 63 | 51 | /** |
| 64 | - * Percent complete of current step. | |
| 65 | - * | |
| 66 | - * @var int | |
| 52 | + * @var int Percent complete of current step | |
| 67 | 53 | */ |
| 68 | 54 | public $step_percentage = 0; |
| 69 | 55 | |
| 70 | 56 | /** |
| 71 | - * Percent complete of all step. | |
| 72 | - * | |
| 73 | - * @var int | |
| 57 | + * @var int Percent complete of all step | |
| 74 | 58 | */ |
| 75 | 59 | public $total_percentage = 0; |
| 76 | 60 | |
| 77 | 61 | /** |
| 78 | - * Name of source forum platform. | |
| 79 | - * | |
| 80 | - * @var int | |
| 62 | + * @var int Name of source forum platform | |
| 81 | 63 | */ |
| 82 | 64 | public $platform = ''; |
| 83 | 65 | |
| 84 | 66 | /** |
| 85 | - * Type of converter to use. | |
| 86 | - * | |
| 87 | - * @var BBP_Converter_Base | |
| 67 | + * @var BBP_Converter_Base Type of converter to use | |
| 88 | 68 | */ |
| 89 | 69 | public $converter = null; |
| 90 | 70 | |
| 91 | 71 | /** |
| 92 | - * Path to included platforms. | |
| 93 | - * | |
| 94 | - * @var string | |
| 72 | + * @var string Path to included platforms | |
| 95 | 73 | */ |
| 96 | 74 | public $converters_dir = ''; |
| 97 | 75 | |
| 98 | 76 | /** |
| 99 | - * Map of steps to methods. | |
| 100 | - * | |
| 101 | - * @var array | |
| 77 | + * @var array Map of steps to methods | |
| 102 | 78 | */ |
| 103 | 79 | private $steps = array( |
| 104 | 80 | 1 => 'sync_table', |
| 105 | 81 | 2 => 'users', |
| @@ -150,13 +126,8 @@ | ||
| 150 | 126 | add_action( 'admin_head-tools_page_bbp-converter', array( $this, 'admin_head' ) ); |
| 151 | 127 | |
| 152 | 128 | // Attach to the admin ajax request to process cycles |
| 153 | 129 | add_action( 'wp_ajax_bbp_converter_process', array( $this, 'process_callback' ) ); |
| 154 | - | |
| 155 | - /** Dependencies ******************************************************/ | |
| 156 | - | |
| 157 | - // Allow plugins to modify these actions | |
| 158 | - do_action_ref_array( 'bbp_admin_converter_loaded', array( &$this ) ); | |
| 159 | 130 | } |
| 160 | 131 | |
| 161 | 132 | /** |
| 162 | 133 | * Admin scripts |