portal.mkgtu.ru/common/services/NamesManagementService.php

44 lines
1.3 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace common\services;
use common\components\dictionaryManager\dictionaryManager;
use yii\base\BaseObject;
class NamesManagementService extends BaseObject
{
private dictionaryManager $dictionaryManager;
public function __construct(dictionaryManager $dictionaryManager, $config = [])
{
parent::__construct($config);
$this->dictionaryManager = $dictionaryManager;
}
public function getFullPackageAchievementCommentColumnName(): string
{
$version = $this->dictionaryManager->GetInterfaceVersion('PostEntrantPackage');
if (version_compare($version, '0.0.19.3') >= 0) {
return 'Comment';
}
return 'Сomment';
}
public function getPropertyAttributeValueColumnName(): string
{
$version = $this->dictionaryManager->GetInterfaceVersion('GetLapResults');
if (version_compare($version, '0.0.19.3') >= 0) {
return 'PropertyAttributeValue';
}
return 'PropertyАttributeValue';
}
public function getPropertyAttributeNameColumnName(): string
{
$version = $this->dictionaryManager->GetInterfaceVersion('GetLapResults');
if (version_compare($version, '0.0.19.3') >= 0) {
return 'PropertyAttributeName';
}
return 'PropertyАttributeName';
}
}