- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
61 lines
1.6 KiB
PHP
61 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Records errors for particular segments of an HTML document such as tokens,
|
|
* attributes or CSS properties. They can contain error structs (which apply
|
|
* to components of what they represent), but their main purpose is to hold
|
|
* errors applying to whatever struct is being used.
|
|
*/
|
|
class HTMLPurifier_ErrorStruct
|
|
{
|
|
|
|
/**
|
|
* Possible values for $children first-key. Note that top-level structures
|
|
* are automatically token-level.
|
|
*/
|
|
const TOKEN = 0;
|
|
const ATTR = 1;
|
|
const CSSPROP = 2;
|
|
|
|
/**
|
|
* Type of this struct.
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* Value of the struct we are recording errors for. There are various
|
|
* values for this:
|
|
* - TOKEN: Instance of HTMLPurifier_Token
|
|
* - ATTR: array('attr-name', 'value')
|
|
* - CSSPROP: array('prop-name', 'value')
|
|
*/
|
|
public $value;
|
|
|
|
/**
|
|
* Errors registered for this structure.
|
|
*/
|
|
public $errors = array();
|
|
|
|
/**
|
|
* Child ErrorStructs that are from this structure. For example, a TOKEN
|
|
* ErrorStruct would contain ATTR ErrorStructs. This is a multi-dimensional
|
|
* array in structure: [TYPE]['identifier']
|
|
*/
|
|
public $children = array();
|
|
|
|
public function getChild($type, $id) {
|
|
if (!isset($this->children[$type][$id])) {
|
|
$this->children[$type][$id] = new HTMLPurifier_ErrorStruct();
|
|
$this->children[$type][$id]->type = $type;
|
|
}
|
|
return $this->children[$type][$id];
|
|
}
|
|
|
|
public function addError($severity, $message) {
|
|
$this->errors[] = array($severity, $message);
|
|
}
|
|
|
|
}
|
|
|
|
// vim: et sw=4 sts=4
|