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.

(no description)

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

Defines 1 class

Unique:: (5 methods):
  unique()
  uniqueByRow()
  uniqueByColumn()
  countValuesCaseInsensitive()
  exactlyOnceFilter()


Class: Unique  - X-Ref

unique($lookupVector, $byColumn = false, $exactlyOnce = false)   X-Ref
UNIQUE
The UNIQUE function searches for value either from a one-row or one-column range or from an array.

param: mixed $lookupVector The range of cells being searched
param: mixed $byColumn Whether the uniqueness should be determined by row (the default) or by column
param: mixed $exactlyOnce Whether the function should return only entries that occur just once in the list
return: mixed The unique values from the search range

uniqueByRow(array $lookupVector, bool $exactlyOnce)   X-Ref

return: mixed

uniqueByColumn(array $lookupVector, bool $exactlyOnce)   X-Ref
No description

countValuesCaseInsensitive(array $caseSensitiveLookupValues)   X-Ref
No description

exactlyOnceFilter(array $values)   X-Ref
No description