Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(no description)

File Size: 110 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Lookup:: (5 methods):
  lookup()
  verifyLookupValues()
  verifyResultVector()
  rowCount()
  columnCount()


Class: Lookup  - X-Ref

lookup($lookupValue, $lookupVector, $resultVector = null)   X-Ref
LOOKUP
The LOOKUP function searches for value either from a one-row or one-column range or from an array.

param: mixed $lookupValue The value that you want to match in lookup_array
param: mixed $lookupVector The range of cells being searched
param: null|mixed $resultVector The column from which the matching value must be returned
return: mixed The value of the found cell

verifyLookupValues(array $lookupVector, array $resultVector)   X-Ref
No description

verifyResultVector(array $lookupVector, $resultVector)   X-Ref
No description

rowCount(array $dataArray)   X-Ref
No description

columnCount(array $dataArray)   X-Ref
No description