Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
cc_validate_type Class Reference
Inheritance diagram for cc_validate_type:
assesment_validator blti_validator discussion_validator manifest10_validator manifest_validator weblink_validator

Public Member Functions

 __construct ($type, $location)
 
 validate ($element)
 Validates the item.
 

Public Attributes

const assesment_validator1 = '/domainProfile_4/ims_qtiasiv1p2_localised.xsd'
 
const assesment_validator11 = 'ccv1p1_qtiasiv1p2p1_v1p0.xsd'
 
const blti_validator11 = 'imslticc_v1p0p1.xsd'
 
const discussion_validator1 = '/domainProfile_6/imsdt_v1p0_localised.xsd'
 
const discussion_validator11 = 'ccv1p1_imsdt_v1p1.xsd'
 
const manifest_validator1 = 'cclibxml2validator.xsd'
 
const manifest_validator11 = 'cc11libxml2validator.xsd'
 
const weblink_validator1 = '/domainProfile_5/imswl_v1p0_localised.xsd'
 
const weblink_validator11 = 'ccv1p1_imswl_v1p1.xsd'
 

Protected Attributes

string $location = null
 
string $type = null
 

Member Function Documentation

◆ validate()

cc_validate_type::validate ( $element)

Validates the item.

Parameters
string$element- File path for the xml
Return values
boolean

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