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 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class

Value:: (11 methods):
  isBlank()
  isRef()
  isEven()
  isOdd()
  isNumber()
  isLogical()
  isText()
  isNonText()
  isFormula()
  asNumber()
  type()


Class: Value  - X-Ref

isBlank($value = null)   X-Ref
IS_BLANK.

param: mixed $value Value to check
return: array|bool

isRef($value, ?Cell $cell = null)   X-Ref
IS_REF.

param: mixed $value Value to check
return: bool

isEven($value = null)   X-Ref
IS_EVEN.

param: mixed $value Value to check
return: array|bool|string

isOdd($value = null)   X-Ref
IS_ODD.

param: mixed $value Value to check
return: array|bool|string

isNumber($value = null)   X-Ref
IS_NUMBER.

param: mixed $value Value to check
return: array|bool

isLogical($value = null)   X-Ref
IS_LOGICAL.

param: mixed $value Value to check
return: array|bool

isText($value = null)   X-Ref
IS_TEXT.

param: mixed $value Value to check
return: array|bool

isNonText($value = null)   X-Ref
IS_NONTEXT.

param: mixed $value Value to check
return: array|bool

isFormula($cellReference = '', ?Cell $cell = null)   X-Ref
ISFORMULA.

param: mixed $cellReference The cell to check
param: ?Cell $cell The current cell (containing this formula)
return: array|bool|string

asNumber($value = null)   X-Ref
N.

Returns a value converted to a number

param: null|mixed $value The value you want converted
return: number|string N converts values listed in the following table

type($value = null)   X-Ref
TYPE.

Returns a number that identifies the type of a value

param: null|mixed $value The value you want tested
return: number N converts values listed in the following table