@@ -88,33 +88,33 @@ |
||
| 88 | 88 | public function get_selectors_etpl(); |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * Returns errors that were encountered during importing |
|
| 92 | - * Maximum of one error message per record, but you can concatenate them if you need to |
|
| 93 | - * |
|
| 94 | - * @return Array ( |
|
| 95 | - * record_# => error message |
|
| 96 | - * ) |
|
| 97 | - */ |
|
| 91 | + * Returns errors that were encountered during importing |
|
| 92 | + * Maximum of one error message per record, but you can concatenate them if you need to |
|
| 93 | + * |
|
| 94 | + * @return Array ( |
|
| 95 | + * record_# => error message |
|
| 96 | + * ) |
|
| 97 | + */ |
|
| 98 | 98 | public function get_errors(); |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * Returns warnings that were encountered during importing |
|
| 102 | - * Maximum of one warning message per record, but you can concatenate them if you need to |
|
| 103 | - * |
|
| 104 | - * @return Array ( |
|
| 105 | - * record_# => warning message |
|
| 106 | - * ) |
|
| 107 | - */ |
|
| 101 | + * Returns warnings that were encountered during importing |
|
| 102 | + * Maximum of one warning message per record, but you can concatenate them if you need to |
|
| 103 | + * |
|
| 104 | + * @return Array ( |
|
| 105 | + * record_# => warning message |
|
| 106 | + * ) |
|
| 107 | + */ |
|
| 108 | 108 | public function get_warnings(); |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | - * Returns a list of actions taken, and the number of records for that action. |
|
| 112 | - * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 113 | - * |
|
| 114 | - * @return Array ( |
|
| 115 | - * action => record count |
|
| 116 | - * ) |
|
| 117 | - */ |
|
| 111 | + * Returns a list of actions taken, and the number of records for that action. |
|
| 112 | + * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 113 | + * |
|
| 114 | + * @return Array ( |
|
| 115 | + * action => record count |
|
| 116 | + * ) |
|
| 117 | + */ |
|
| 118 | 118 | public function get_results(); |
| 119 | 119 | |
| 120 | 120 | } // end of iface_export_plugin |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $record_class = isset(static::$record_class) ? static::$record_class : "{$app}_egw_record"; |
| 164 | 164 | |
| 165 | 165 | // Needed for categories to work right |
| 166 | - $GLOBALS['egw_info']['flags']['currentapp'] = $app; |
|
| 166 | + $GLOBALS['egw_info']['flags']['currentapp'] = $app; |
|
| 167 | 167 | |
| 168 | 168 | $this->init($_definition); |
| 169 | 169 | |
@@ -215,15 +215,15 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | - *Import a single record |
|
| 219 | - * |
|
| 220 | - * You don't need to worry about mappings or translations, they've been done already. |
|
| 221 | - * You do need to handle the conditions and the actions taken. |
|
| 222 | - * |
|
| 223 | - * Updates the count of actions taken |
|
| 224 | - * |
|
| 225 | - * @return boolean success |
|
| 226 | - */ |
|
| 218 | + *Import a single record |
|
| 219 | + * |
|
| 220 | + * You don't need to worry about mappings or translations, they've been done already. |
|
| 221 | + * You do need to handle the conditions and the actions taken. |
|
| 222 | + * |
|
| 223 | + * Updates the count of actions taken |
|
| 224 | + * |
|
| 225 | + * @return boolean success |
|
| 226 | + */ |
|
| 227 | 227 | protected function import_record(importexport_iface_egw_record &$record, &$import_csv) |
| 228 | 228 | { |
| 229 | 229 | if ( $this->definition->plugin_options['conditions'] ) { |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | * @param stream $stream |
| 404 | 404 | * @param importexport_definition $definition |
| 405 | 405 | * @return String HTML for preview |
| 406 | - */ |
|
| 406 | + */ |
|
| 407 | 407 | public function preview( $stream, importexport_definition $definition ) |
| 408 | 408 | { |
| 409 | 409 | $this->import($stream, $definition); |
@@ -639,37 +639,37 @@ discard block |
||
| 639 | 639 | } |
| 640 | 640 | |
| 641 | 641 | /** |
| 642 | - * Returns warnings that were encountered during importing |
|
| 643 | - * Maximum of one warning message per record, but you can append if you need to |
|
| 644 | - * |
|
| 645 | - * @return Array ( |
|
| 646 | - * record_# => warning message |
|
| 647 | - * ) |
|
| 648 | - */ |
|
| 642 | + * Returns warnings that were encountered during importing |
|
| 643 | + * Maximum of one warning message per record, but you can append if you need to |
|
| 644 | + * |
|
| 645 | + * @return Array ( |
|
| 646 | + * record_# => warning message |
|
| 647 | + * ) |
|
| 648 | + */ |
|
| 649 | 649 | public function get_warnings() { |
| 650 | 650 | return $this->warnings; |
| 651 | 651 | } |
| 652 | 652 | |
| 653 | 653 | /** |
| 654 | - * Returns errors that were encountered during importing |
|
| 655 | - * Maximum of one error message per record, but you can append if you need to |
|
| 656 | - * |
|
| 657 | - * @return Array ( |
|
| 658 | - * record_# => error message |
|
| 659 | - * ) |
|
| 660 | - */ |
|
| 654 | + * Returns errors that were encountered during importing |
|
| 655 | + * Maximum of one error message per record, but you can append if you need to |
|
| 656 | + * |
|
| 657 | + * @return Array ( |
|
| 658 | + * record_# => error message |
|
| 659 | + * ) |
|
| 660 | + */ |
|
| 661 | 661 | public function get_errors() { |
| 662 | 662 | return $this->errors; |
| 663 | 663 | } |
| 664 | 664 | |
| 665 | 665 | /** |
| 666 | - * Returns a list of actions taken, and the number of records for that action. |
|
| 667 | - * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 668 | - * |
|
| 669 | - * @return Array ( |
|
| 670 | - * action => record count |
|
| 671 | - * ) |
|
| 672 | - */ |
|
| 666 | + * Returns a list of actions taken, and the number of records for that action. |
|
| 667 | + * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 668 | + * |
|
| 669 | + * @return Array ( |
|
| 670 | + * action => record count |
|
| 671 | + * ) |
|
| 672 | + */ |
|
| 673 | 673 | public function get_results() { |
| 674 | 674 | return $this->results; |
| 675 | 675 | } |
@@ -32,25 +32,25 @@ discard block |
||
| 32 | 32 | * Relative date ranges for filtering |
| 33 | 33 | */ |
| 34 | 34 | public static $relative_dates = array( // Start: year,month,day,week, End: year,month,day,week |
| 35 | - 'Today' => array(0,0,0,0, 0,0,1,0), |
|
| 36 | - 'Yesterday' => array(0,0,-1,0, 0,0,0,0), |
|
| 37 | - 'This week' => array(0,0,0,0, 0,0,0,1), |
|
| 38 | - 'Last week' => array(0,0,0,-1, 0,0,0,0), |
|
| 39 | - 'This month' => array(0,0,0,0, 0,1,0,0), |
|
| 40 | - 'Last month' => array(0,-1,0,0, 0,0,0,0), |
|
| 41 | - 'Last 3 months' => array(0,-3,0,0, 0,0,0,0), |
|
| 42 | - 'This quarter'=> array(0,0,0,0, 0,0,0,0), // Just a marker, needs special handling |
|
| 43 | - 'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker |
|
| 44 | - 'This year' => array(0,0,0,0, 1,0,0,0), |
|
| 45 | - 'Last year' => array(-1,0,0,0, 0,0,0,0), |
|
| 46 | - '2 years ago' => array(-2,0,0,0, -1,0,0,0), |
|
| 47 | - '3 years ago' => array(-3,0,0,0, -2,0,0,0), |
|
| 48 | - ); |
|
| 35 | + 'Today' => array(0,0,0,0, 0,0,1,0), |
|
| 36 | + 'Yesterday' => array(0,0,-1,0, 0,0,0,0), |
|
| 37 | + 'This week' => array(0,0,0,0, 0,0,0,1), |
|
| 38 | + 'Last week' => array(0,0,0,-1, 0,0,0,0), |
|
| 39 | + 'This month' => array(0,0,0,0, 0,1,0,0), |
|
| 40 | + 'Last month' => array(0,-1,0,0, 0,0,0,0), |
|
| 41 | + 'Last 3 months' => array(0,-3,0,0, 0,0,0,0), |
|
| 42 | + 'This quarter'=> array(0,0,0,0, 0,0,0,0), // Just a marker, needs special handling |
|
| 43 | + 'Last quarter'=> array(0,-4,0,0, 0,-4,0,0), // Just a marker |
|
| 44 | + 'This year' => array(0,0,0,0, 1,0,0,0), |
|
| 45 | + 'Last year' => array(-1,0,0,0, 0,0,0,0), |
|
| 46 | + '2 years ago' => array(-2,0,0,0, -1,0,0,0), |
|
| 47 | + '3 years ago' => array(-3,0,0,0, -2,0,0,0), |
|
| 48 | + ); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * Files known to cause problems, and will be skipped in a plugin scan |
|
| 52 | - * If you put appname => true, the whole app will be skipped. |
|
| 53 | - */ |
|
| 51 | + * Files known to cause problems, and will be skipped in a plugin scan |
|
| 52 | + * If you put appname => true, the whole app will be skipped. |
|
| 53 | + */ |
|
| 54 | 54 | protected static $blacklist_files = array( |
| 55 | 55 | 'api' => true, |
| 56 | 56 | 'etemplate' => true, |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | ); |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * Class used to provide extra conversion functions |
|
| 68 | - * |
|
| 69 | - * Passed in as a param to conversion() |
|
| 70 | - */ |
|
| 67 | + * Class used to provide extra conversion functions |
|
| 68 | + * |
|
| 69 | + * Passed in as a param to conversion() |
|
| 70 | + */ |
|
| 71 | 71 | protected static $cclass = null; |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -196,8 +196,8 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * Get options for select boxes |
|
| 200 | - */ |
|
| 199 | + * Get options for select boxes |
|
| 200 | + */ |
|
| 201 | 201 | public static function get_select_options(Array $data) |
| 202 | 202 | { |
| 203 | 203 | $options = array( |
@@ -261,8 +261,8 @@ discard block |
||
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | /** |
| 264 | - * Generate a async key |
|
| 265 | - */ |
|
| 264 | + * Generate a async key |
|
| 265 | + */ |
|
| 266 | 266 | public static function generate_id($data) |
| 267 | 267 | { |
| 268 | 268 | |
@@ -278,11 +278,11 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | - * Check that the target is valid for the type (readable or writable) |
|
| 282 | - * and that they're not trying to write directly to the filesystem |
|
| 283 | - * |
|
| 284 | - * $data should contain target & type |
|
| 285 | - */ |
|
| 281 | + * Check that the target is valid for the type (readable or writable) |
|
| 282 | + * and that they're not trying to write directly to the filesystem |
|
| 283 | + * |
|
| 284 | + * $data should contain target & type |
|
| 285 | + */ |
|
| 286 | 286 | public static function check_target(Array $data) { |
| 287 | 287 | $scheme = parse_url($data['target'], PHP_URL_SCHEME); |
| 288 | 288 | if($scheme == '' || $scheme == 'file') |
@@ -329,11 +329,11 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | /** |
| 332 | - * Writable that checks the folder too, in case the file does not exist yet |
|
| 333 | - * http://ca3.php.net/manual/en/function.is-writable.php#73596 |
|
| 334 | - * |
|
| 335 | - * @param path Path to check |
|
| 336 | - */ |
|
| 332 | + * Writable that checks the folder too, in case the file does not exist yet |
|
| 333 | + * http://ca3.php.net/manual/en/function.is-writable.php#73596 |
|
| 334 | + * |
|
| 335 | + * @param path Path to check |
|
| 336 | + */ |
|
| 337 | 337 | private static function is__writable($path) |
| 338 | 338 | { |
| 339 | 339 | if ($path{strlen($path)-1}=='/') |
@@ -365,8 +365,8 @@ discard block |
||
| 365 | 365 | } |
| 366 | 366 | |
| 367 | 367 | /** |
| 368 | - * Execute a scheduled import or export |
|
| 369 | - */ |
|
| 368 | + * Execute a scheduled import or export |
|
| 369 | + */ |
|
| 370 | 370 | public static function exec($data) |
| 371 | 371 | { |
| 372 | 372 | ob_start(); |
@@ -137,10 +137,10 @@ |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * Save a definition |
|
| 141 | - * |
|
| 142 | - * @param definition $definition |
|
| 143 | - */ |
|
| 140 | + * Save a definition |
|
| 141 | + * |
|
| 142 | + * @param definition $definition |
|
| 143 | + */ |
|
| 144 | 144 | public function save(Array $data) { |
| 145 | 145 | $definition = new importexport_definition(); |
| 146 | 146 | $definition->set_record($data); |
@@ -23,13 +23,13 @@ discard block |
||
| 23 | 23 | const TEMPLATE_MARKER = '-eTemplate-'; |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * List of steps. Key is the function, value is the translated title. |
|
| 27 | - */ |
|
| 26 | + * List of steps. Key is the function, value is the translated title. |
|
| 27 | + */ |
|
| 28 | 28 | public $steps; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 32 | - */ |
|
| 31 | + * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 32 | + */ |
|
| 33 | 33 | protected $step_templates = array( |
| 34 | 34 | 'wizard_step30' => 'importexport.wizard_basic_export_csv.choose_fields', |
| 35 | 35 | 'wizard_step40' => 'importexport.wizard_basic_export_csv.choosesepncharset', |
@@ -38,19 +38,19 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Destination fields for the export |
|
| 42 | - * Key is the field name, value is the human version |
|
| 43 | - */ |
|
| 41 | + * Destination fields for the export |
|
| 42 | + * Key is the field name, value is the human version |
|
| 43 | + */ |
|
| 44 | 44 | protected $export_fields = array(); |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * List of conditions your plugin supports |
|
| 48 | - */ |
|
| 47 | + * List of conditions your plugin supports |
|
| 48 | + */ |
|
| 49 | 49 | protected $conditions = array(); |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * List of actions your plugin supports |
|
| 53 | - */ |
|
| 52 | + * List of actions your plugin supports |
|
| 53 | + */ |
|
| 54 | 54 | protected $actions = array(); |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Choose fields to export |
|
| 73 | - */ |
|
| 72 | + * Choose fields to export |
|
| 73 | + */ |
|
| 74 | 74 | function wizard_step30(&$content, &$sel_options, &$readonlys, &$preserv) |
| 75 | 75 | { |
| 76 | 76 | if($this->debug) error_log(get_class($this) . '::wizard_step30->$content '.print_r($content,true)); |
@@ -206,16 +206,16 @@ discard block |
||
| 206 | 206 | ); |
| 207 | 207 | $sel_options['charset'] = Api\Translation::get_installed_charsets()+ |
| 208 | 208 | array( |
| 209 | - 'user' => lang('User preference'), |
|
| 210 | - ); |
|
| 209 | + 'user' => lang('User preference'), |
|
| 210 | + ); |
|
| 211 | 211 | |
| 212 | - // Add in extra allowed charsets |
|
| 213 | - $config = Api\Config::read('importexport'); |
|
| 214 | - $extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings()); |
|
| 215 | - if($extra_charsets) |
|
| 216 | - { |
|
| 217 | - $sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets)); |
|
| 218 | - } |
|
| 212 | + // Add in extra allowed charsets |
|
| 213 | + $config = Api\Config::read('importexport'); |
|
| 214 | + $extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings()); |
|
| 215 | + if($extra_charsets) |
|
| 216 | + { |
|
| 217 | + $sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets)); |
|
| 218 | + } |
|
| 219 | 219 | $sel_options['convert'] = array( |
| 220 | 220 | 0 => lang('Database values'), |
| 221 | 221 | 1 => lang('Human friendly values') |
@@ -23,13 +23,13 @@ discard block |
||
| 23 | 23 | const TEMPLATE_MARKER = '-eTemplate-'; |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * List of steps. Key is the function, value is the translated title. |
|
| 27 | - */ |
|
| 26 | + * List of steps. Key is the function, value is the translated title. |
|
| 27 | + */ |
|
| 28 | 28 | public $steps; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 32 | - */ |
|
| 31 | + * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 32 | + */ |
|
| 33 | 33 | protected $step_templates = array( |
| 34 | 34 | 'wizard_step30' => 'importexport.wizard_basic_import_csv.sample_file', |
| 35 | 35 | 'wizard_step40' => 'importexport.wizard_basic_import_csv.choosesepncharset', |
@@ -39,19 +39,19 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Destination fields for the mapping |
|
| 43 | - * Key is the field name, value is the human version |
|
| 44 | - */ |
|
| 42 | + * Destination fields for the mapping |
|
| 43 | + * Key is the field name, value is the human version |
|
| 44 | + */ |
|
| 45 | 45 | protected $mapping_fields = array(); |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * List of conditions your plugin supports |
|
| 49 | - */ |
|
| 48 | + * List of conditions your plugin supports |
|
| 49 | + */ |
|
| 50 | 50 | protected $conditions = array(); |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * List of actions your plugin supports |
|
| 54 | - */ |
|
| 53 | + * List of actions your plugin supports |
|
| 54 | + */ |
|
| 55 | 55 | protected $actions = array(); |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * Take a sample CSV file. It will be processed in later steps |
|
| 72 | - */ |
|
| 71 | + * Take a sample CSV file. It will be processed in later steps |
|
| 72 | + */ |
|
| 73 | 73 | function wizard_step30(&$content, &$sel_options, &$readonlys, &$preserv) |
| 74 | 74 | { |
| 75 | 75 | if($this->debug) error_log(get_class($this) . '::wizard_step30->$content '.print_r($content,true)); |
@@ -263,11 +263,11 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
| 266 | - * Process the sample file, get the fields out of it, then allow them to be mapped onto |
|
| 267 | - * the fields the destination understands. Also, set any translations to be done to the field. |
|
| 268 | - * |
|
| 269 | - * You can use the eTemplate |
|
| 270 | - */ |
|
| 266 | + * Process the sample file, get the fields out of it, then allow them to be mapped onto |
|
| 267 | + * the fields the destination understands. Also, set any translations to be done to the field. |
|
| 268 | + * |
|
| 269 | + * You can use the eTemplate |
|
| 270 | + */ |
|
| 271 | 271 | function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) |
| 272 | 272 | { |
| 273 | 273 | if($this->debug) error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true)); |
@@ -348,8 +348,8 @@ discard block |
||
| 348 | 348 | } |
| 349 | 349 | |
| 350 | 350 | /** |
| 351 | - * Edit conditions |
|
| 352 | - */ |
|
| 351 | + * Edit conditions |
|
| 352 | + */ |
|
| 353 | 353 | function wizard_step55(&$content, &$sel_options, &$readonlys, &$preserv) |
| 354 | 354 | { |
| 355 | 355 | if($this->debug) error_log(get_class($this) . '::wizard_step55->$content '.print_r($content,true)); |
@@ -275,37 +275,37 @@ |
||
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
| 278 | - * Returns warnings that were encountered during importing |
|
| 279 | - * Maximum of one warning message per record, but you can concatenate them if you need to |
|
| 280 | - * |
|
| 281 | - * @return Array ( |
|
| 282 | - * record_# => warning message |
|
| 283 | - * ) |
|
| 284 | - */ |
|
| 278 | + * Returns warnings that were encountered during importing |
|
| 279 | + * Maximum of one warning message per record, but you can concatenate them if you need to |
|
| 280 | + * |
|
| 281 | + * @return Array ( |
|
| 282 | + * record_# => warning message |
|
| 283 | + * ) |
|
| 284 | + */ |
|
| 285 | 285 | public function get_warnings() { |
| 286 | 286 | return $this->warnings; |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | /** |
| 290 | - * Returns errors that were encountered during importing |
|
| 291 | - * Maximum of one error message per record, but you can append if you need to |
|
| 292 | - * |
|
| 293 | - * @return Array ( |
|
| 294 | - * record_# => error message |
|
| 295 | - * ) |
|
| 296 | - */ |
|
| 290 | + * Returns errors that were encountered during importing |
|
| 291 | + * Maximum of one error message per record, but you can append if you need to |
|
| 292 | + * |
|
| 293 | + * @return Array ( |
|
| 294 | + * record_# => error message |
|
| 295 | + * ) |
|
| 296 | + */ |
|
| 297 | 297 | public function get_errors() { |
| 298 | 298 | return $this->errors; |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * Returns a list of actions taken, and the number of records for that action. |
|
| 303 | - * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 304 | - * |
|
| 305 | - * @return Array ( |
|
| 306 | - * action => record count |
|
| 307 | - * ) |
|
| 308 | - */ |
|
| 302 | + * Returns a list of actions taken, and the number of records for that action. |
|
| 303 | + * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 304 | + * |
|
| 305 | + * @return Array ( |
|
| 306 | + * action => record count |
|
| 307 | + * ) |
|
| 308 | + */ |
|
| 309 | 309 | public function get_results() { |
| 310 | 310 | return $this->results; |
| 311 | 311 | } |
@@ -18,11 +18,11 @@ |
||
| 18 | 18 | parent::__construct(); |
| 19 | 19 | |
| 20 | 20 | // Field mapping |
| 21 | - $this->export_fields = array( |
|
| 21 | + $this->export_fields = array( |
|
| 22 | 22 | 'account_id' => lang('Account ID'), |
| 23 | 23 | 'account_lid' => lang('Group Name'), |
| 24 | 24 | 'account_members' => lang('Members'), |
| 25 | - ); |
|
| 25 | + ); |
|
| 26 | 26 | |
| 27 | 27 | // Custom fields - not really used in admin... |
| 28 | 28 | unset($this->export_fields['customfields']); |