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.

(no description)

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

Defines 1 class

factor:: (6 methods):
  get_all_user_factors()
  has_input()
  get_state()
  possible_states()
  set_state()
  check_combination()


Class: factor  - X-Ref

No setup factor class.

get_all_user_factors(stdClass $user)   X-Ref
No Setup Factor implementation.
Factor is a singleton, can only be one instance.

param: stdClass $user the user to check against.
return: array

has_input()   X-Ref
No Setup Factor implementation.
Factor does not have input.

{@inheritDoc}

get_state()   X-Ref
No Setup Factor implementation.
State check is performed here, as there is no form to do it in.

{@inheritDoc}

possible_states(stdClass $user)   X-Ref
No setup implementation.
Copy of get_state, but can take other user..

param: stdClass $user
return: void

set_state(string $state)   X-Ref
No Setup Factor implementation.
The state can never be set. Always return true.

param: string $state the state constant to set
return: bool

check_combination(array $combination)   X-Ref
No Setup Factor implementation.
nosetup should not be a valid combination with another factor.

param: array $combination array of factors that make up the combination
return: bool