Files
crm.clientright.ru/modules/Workflow2/lib/Workflow/RequestValuesForm/Row.php
Fedor ac7467f0b4 Major CRM updates: AI Assistant, Court Status API, S3 integration improvements, and extensive file storage system
- 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.
2025-10-16 11:17:21 +03:00

89 lines
1.8 KiB
PHP

<?php
/**
* @copyright 2016-2017 Redoo Networks GmbH
* @link https://redoo-networks.com/
* This file is part of a vTigerCRM module, implemented by Redoo Networks GmbH and must not used without permission.
*/
namespace Workflow\RequestValuesForm;
use Workflow\RequestValuesForm;
use Workflow\VTEntity;
class Row
{
/**
* @var null|RequestValuesForm
*/
private $_Form = null;
/**
* @var Field[]
*/
private $_Fields = array();
private $_HTML = '';
private $_JS = '';
public function __construct(RequestValuesForm $form) {
$this->_Form = $form;
}
public function addField() {
$field = new Field($this);
$this->_Fields[] = $field;
return $field;
}
/**
* @param VTEntity $context
*/
public function render(VTEntity $context) {
$this->_HTML = '';
$this->_HTML .= '<div class="ReqValRow">';
foreach($this->_Fields as $field) {
if($field->getType() != 'hidden') $this->_HTML .= '<div class="ReqValField">';
$field->render($context);
try {
$this->_HTML .= $field->getHTML();
} catch (\Exception $exp) {}
$this->_JS .= $field->getJS();
if($field->getType() != 'hidden') $this->_HTML .= '</div>';
}
$this->_HTML .= '</div>';
}
/**
* @return string
* @throws \Exception
*/
public function getHTML() {
if(empty($this->_HTML)) throw new \Exception('Execute render Function before get HTML');
return $this->_HTML;
}
/**
* @return Field[]
*/
public function getFieldList() {
return $this->_Fields;
}
/**
* @return string
*/
public function getJS() {
return $this->_JS;
}
}