Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
external_value Class Reference

Scalar value description class. More...

Inheritance diagram for external_value:
external_description external_format_value

Public Member Functions

 __construct ($type, $desc='', $required=VALUE_REQUIRED, $default=null, $allownull=NULL_ALLOWED)
 Constructor. More...
 

Public Attributes

bool $allownull
 Allow null values.
 
mixed $default
 Default value.
 
string $desc
 Description of element.
 
bool $required
 Element value required, null not allowed.
 
mixed $type
 Value type PARAM_XX.
 

Detailed Description

Scalar value description class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Since
Moodle 2.0

Constructor & Destructor Documentation

◆ __construct()

external_value::__construct (   $type,
  $desc = '',
  $required = VALUE_REQUIRED,
  $default = null,
  $allownull = NULL_ALLOWED 
)

Constructor.

Parameters
mixed$type
string$desc
bool$required
mixed$default
bool$allownull
Since
Moodle 2.0

The documentation for this class was generated from the following file: