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: 615 lines (12 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 4 classes

Moxiecode_JSONReader:: (2 methods):
  __construct()
  Moxiecode_JSONReader()

name:: (22 methods):
  getToken()
  getLocation()
  getTokenName()
  getValue()
  readToken()
  _readBool()
  _readNull()
  _readString()
  _int2utf8()
  _readNumber()
  readAway()
  read()
  skip()
  peek()
  decode()
  readValue()
  addArray()
  getDelim()
  encode()
  encodeString()
  _utf82utf16()
  _encodeArray()

Moxiecode_JSON:: (2 methods):
  __construct()
  Moxiecode_JSON()

name:: (22 methods):
  getToken()
  getLocation()
  getTokenName()
  getValue()
  readToken()
  _readBool()
  _readNull()
  _readString()
  _int2utf8()
  _readNumber()
  readAway()
  read()
  skip()
  peek()
  decode()
  readValue()
  addArray()
  getDelim()
  encode()
  encodeString()
  _utf82utf16()
  _encodeArray()


Class: Moxiecode_JSONReader  - X-Ref


__construct($data)   X-Ref
No description

Moxiecode_JSONReader($data)   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

getToken()   X-Ref
No description

getLocation()   X-Ref
No description

getTokenName()   X-Ref
No description

getValue()   X-Ref
No description

readToken()   X-Ref
No description

_readBool($chr)   X-Ref
No description

_readNull()   X-Ref
No description

_readString($quote)   X-Ref
No description

_int2utf8($int)   X-Ref
No description

_readNumber($start)   X-Ref
No description

readAway()   X-Ref
No description

read($len = 1)   X-Ref
No description

skip($len)   X-Ref
No description

peek()   X-Ref
No description

decode($input)   X-Ref
No description

readValue(&$reader)   X-Ref
No description

addArray($key)   X-Ref
No description

getDelim($index, &$reader)   X-Ref
No description

encode($input)   X-Ref
No description

encodeString($input)   X-Ref
No description

_utf82utf16($utf8)   X-Ref
No description

_encodeArray($input)   X-Ref
No description

Class: Moxiecode_JSON  - X-Ref

This class handles JSON stuff.

__construct()   X-Ref
No description

Moxiecode_JSON()   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

getToken()   X-Ref
No description

getLocation()   X-Ref
No description

getTokenName()   X-Ref
No description

getValue()   X-Ref
No description

readToken()   X-Ref
No description

_readBool($chr)   X-Ref
No description

_readNull()   X-Ref
No description

_readString($quote)   X-Ref
No description

_int2utf8($int)   X-Ref
No description

_readNumber($start)   X-Ref
No description

readAway()   X-Ref
No description

read($len = 1)   X-Ref
No description

skip($len)   X-Ref
No description

peek()   X-Ref
No description

decode($input)   X-Ref
No description

readValue(&$reader)   X-Ref
No description

addArray($key)   X-Ref
No description

getDelim($index, &$reader)   X-Ref
No description

encode($input)   X-Ref
No description

encodeString($input)   X-Ref
No description

_utf82utf16($utf8)   X-Ref
No description

_encodeArray($input)   X-Ref
No description