LLMS_Table_Membership_Students::get_export_data( string $key, obj $student )
Retrieve data for a cell in an export file.
Description Description
Should be overridden in extending classes.
Parameters Parameters
- $key
-
(string) (Required) The column id / key.
- $student
-
(obj) (Required) Instance of the LLMS_Student.
Return Return
(mixed)
Source Source
File: includes/admin/reporting/tables/llms.table.membership.students.php
public function get_export_data( $key, $student ) { switch ( $key ) { case 'id': $value = $student->get_id(); break; case 'email': $value = $student->get( 'user_email' ); break; case 'name_first': $value = $student->get( 'first_name' ); break; case 'name_last': $value = $student->get( 'last_name' ); break; default: $value = $this->get_data( $key, $student ); }// End switch(). return $this->filter_get_data( $value, $key, $student, 'export' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.32.0 | Introduced. |