class item_validator_service implements item_validator_service_interface

internal  
 

Core validator for Item DTOs.

Enforces universal rules for the Item entity (e.g. valid IDs, safe metadata structure). Extension-specific business rules should be handled by specialized validators or within the specific extension service.

Methods

void
validate_create(item_dto_interface $dto)

Validate DTO for "create" operation.

void
validate_update(item_dto_interface $dto)

Validate DTO for "update" operation.

Details

at line 43
void validate_create(item_dto_interface $dto)

Validate DTO for "create" operation.

Parameters

item_dto_interface $dto

Return Value

void

Exceptions

moodle_exception

at line 57
void validate_update(item_dto_interface $dto)

Validate DTO for "update" operation.

Parameters

item_dto_interface $dto

Return Value

void

Exceptions

moodle_exception