chore: Update copyright year from 2025 to 2026 across core files

- Updated copyright headers in 3,055 core application files
- Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026'
- Added 123 new files from EspoCRM core updates
- Removed 4 deprecated files
- Total changes: 61,637 insertions, 54,283 deletions

This is a routine maintenance update for the new year 2026.
This commit is contained in:
2026-02-07 16:05:21 +01:00
parent 6a8a4a2882
commit 127fa6503b
6468 changed files with 564781 additions and 31179 deletions

View File

@@ -3,7 +3,7 @@
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2025 EspoCRM, Inc.
* Copyright (C) 2014-2026 EspoCRM, Inc.
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
@@ -39,7 +39,6 @@ use Espo\Core\Record\Select\ApplierClassNameListProvider;
use Espo\Core\Record\ServiceContainer as RecordServiceContainer;
use Espo\Core\Select\SearchParams;
use Espo\Core\Select\SelectBuilderFactory;
use Espo\Core\Utils\Metadata;
use Espo\ORM\Entity;
use Espo\ORM\EntityManager;
@@ -56,12 +55,12 @@ class Kanban
private int $maxOrderNumber = self::DEFAULT_MAX_ORDER_NUMBER;
public function __construct(
private Metadata $metadata,
private SelectBuilderFactory $selectBuilderFactory,
private EntityManager $entityManager,
private ListLoadProcessor $listLoadProcessor,
private RecordServiceContainer $recordServiceContainer,
private ApplierClassNameListProvider $applierClassNameListProvider,
private MetadataProvider $metadataProvider,
) {}
public function setEntityType(string $entityType): self
@@ -149,9 +148,9 @@ class Kanban
)
->build();
$statusField = $this->getStatusField();
$statusList = $this->getStatusList();
$statusIgnoreList = $this->getStatusIgnoreList();
$statusField = $this->metadataProvider->getStatusField($this->entityType);
$statusList = $this->metadataProvider->getStatusList($this->entityType);
$statusIgnoreList = $this->metadataProvider->getStatusIgnoreList($this->entityType);
$groupList = [];
@@ -246,49 +245,4 @@ class Kanban
return new Result($groupList, $total);
}
/**
* @throws Error
*/
private function getStatusField(): string
{
assert(is_string($this->entityType));
$statusField = $this->metadata->get(['scopes', $this->entityType, 'statusField']);
if (!$statusField) {
throw new Error("No status field for entity type '$this->entityType'.");
}
return $statusField;
}
/**
* @return string[]
* @throws Error
*/
private function getStatusList(): array
{
assert(is_string($this->entityType));
$statusField = $this->getStatusField();
$statusList = $this->metadata->get(['entityDefs', $this->entityType, 'fields', $statusField, 'options']);
if (empty($statusList)) {
throw new Error("No options for status field for entity type '$this->entityType'.");
}
return $statusList;
}
/**
* @return string[]
*/
private function getStatusIgnoreList(): array
{
assert(is_string($this->entityType));
return $this->metadata->get(['scopes', $this->entityType, 'kanbanStatusIgnoreList'], []);
}
}