Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

List of deprecated mod_data functions.

Copyright: 2021 Jun Pataleta
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 264 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

instead:: (5 methods):
  data_export_xls()
  data_export_csv()
  data_export_ods()
  data_get_exportdata()
  data_import_csv()

Defines 5 functions


Class: instead  - X-Ref

data_export_xls($export, $dataname, $count)   X-Ref

param: array $export
param: string $dataname
param: int $count
return: string

data_export_csv($export, $delimiter_name, $database, $count, $return=false)   X-Ref

param: array $export
param: string $delimiter_name
param: object $database
param: int $count
param: bool $return
return: string|void

data_export_ods($export, $dataname, $count)   X-Ref

param: array $export
param: string $dataname
param: int $count
param: string

data_get_exportdata($dataid, $fields, $selectedfields, $currentgroup=0, $context=null,$userdetails=false, $time=false, $approval=false, $tags = false)   X-Ref

param: int $dataid
param: array $fields
param: array $selectedfields
param: int $currentgroup group ID of the current group. This is used for
param: object $context the context in which the operation is performed (for capability checks)
param: bool $userdetails whether to include the details of the record author
param: bool $time whether to include time created/modified
param: bool $approval whether to include approval status
param: bool $tags whether to include tags
return: array

data_import_csv($cm, $data, &$csvdata, $encoding, $fielddelimiter)   X-Ref

param: object $cm Course module of the data instance.
param: object $data The data instance.
param: string $csvdata The csv data to be imported.
param: string $encoding The encoding of csv data.
param: string $fielddelimiter The delimiter of the csv data.
return: int Number of records added.

Functions that are not part of a class: