2017 © Pedro Peláez
 

elgg-plugin csv_exporter

export all searchable entities to a CSV

image

coldtrick/csv_exporter

export all searchable entities to a CSV

  • Monday, April 16, 2018
  • by jeabakker
  • Repository
  • 1 Watchers
  • 2 Stars
  • 902 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 4 Open issues
  • 14 Versions
  • 7 % Grown

The README.md

CSV Exporter

Elgg 6.0 Lint Checks Latest Stable Version License, (*1)

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

How to

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

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

  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

By default all searchable entities are exportable, if however you wish to change this list use the event, (*5)

elgg_register_event_handler("allowed_type_subtypes", "csv_exporter", "your function");, (*6)

and change the result array., (*7)

You can add your own values to the available list by registering a event like, (*8)

elgg_register_event_handler("get_exportable_values", "csv_exporter", "your function");, (*9)

This event gets the following params:, (*10)

  • 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 an event, (*11)

elgg_register_event_handler("export_value", "csv_exporter", "your function");, (*12)

This event gets the following params:, (*13)

  • 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., (*14)

In order to allow group admins to export basic information add the configuration with the following event:, (*15)

elgg_register_event_handler("get_exportable_values:group", "csv_exporter", "your function");, (*16)

This event gets the following params:, (*17)

  • type: the type of the entity to supply the values for
  • subtype: the subtype of the entity to supply the values for

Return an array with [value] where:, (*18)

  • value: the same name as in the get_exportable_values, csv_exporter event

The Versions

16/04 2018

dev-master

9999999-dev

export all searchable entities to a CSV

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

The Development Requires

plugin export elgg

25/01 2018

v4.3

4.3.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

14/12 2017

v4.2

4.2.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

06/09 2017

v4.1.1

4.1.1.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

27/02 2017

v4.1

4.1.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

26/01 2017

v4.0

4.0.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

15/09 2016

v3.1.1

3.1.1.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

26/05 2016

v3.1

3.1.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

16/02 2016

v3.0.2

3.0.2.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

19/01 2016

v3.0.1

3.0.1.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

08/07 2015

v3.0

3.0.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

08/07 2015

dev-elgg_19

dev-elgg_19

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

08/07 2015

v2.1

2.1.0.0

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg

28/05 2015

dev-elgg_18

dev-elgg_18

export all searchable entities to a CSV

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin export elgg