2017 © Pedro Peláez
 

elgg-plugin csv_exporter

image

pleio/csv_exporter

  • Monday, April 2, 2018
  • by bartj
  • Repository
  • 8 Watchers
  • 0 Stars
  • 2,190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

CSV Exporter

This plugin allows you to export all searchable entities to a CSV., (*1)

How to

As an administrator go to the Admin section. Under Administer -> Utilities you can find the CSV Exporter menu item., (*2)

If a few easy steps you can select the CSV content., (*3)

  1. Select what you wish to export (Users, Groups, Blogs etc.)
  2. Once you've selected what you wish to export you get a choice of which columns to include
  3. Now you can click on Preview to check if this is what you wish to export
    or you can click Download CSV to export all the content to a CSV file

Developers

You can add your own values to the available list by registering a plugin hook like, (*4)

elgg_register_plugin_hook_handler("get_exportable_values", "csv_exporter", "your function");, (*5)

This hook get the following params:, (*6)

  • type: the type of the entity to supply the values for
  • subtype: the subtype of the entity to supply the values for
  • readable: true|false, if true the result must be an associative array in the format array(label => value), this is used to display the checkboxes to the user.
    If false just return the value as part of an array (eg array(value)).

In order to export the correct values you have to also register a plugin hook, (*7)

elgg_register_plugin_hook_handler("export_value", "csv_exporter", "your function");, (*8)

This hook get the following params:, (*9)

  • type: the type of the entity to supply the values for
  • subtype: the subtype of the entity to supply the values for
  • entity: the entity for which to export the value
  • exportable_value: the value to export

If you return anything other than null this value will be used, otherwise the system will try to get the exportable_value as a metadata field., (*10)

The Versions

02/04 2018

v1.0

1.0.0.0

  Sources   Download

31/07 2017

dev-elgg_18

dev-elgg_18

  Sources   Download

The Requires

 

03/08 2016

dev-master

9999999-dev

  Sources   Download

The Requires