method public static

CurrencyRateTable::getCollectionParentClass()

Класс: \Bitrix\Currency\CurrencyRateTable

Сигнатура

public static getCollectionParentClass() : Collection|string

Возвращаемое значение

Collection|string

Как применяется в CurrencyRateTable

CurrencyRateTable::getCollectionParentClass() — метод класса \Bitrix\Currency\CurrencyRateTable модуля «Валюты». Это ORM-сущность D7 (наследник DataManager): строки читаются как объекты EO_CurrencyRate, наборы — как EO_CurrencyRate_Collection. Метод достаётся CurrencyRateTable от DataManager::getCollectionParentClass: поведение общее для всех сущностей, а данные, поля и классы — свои.

Служебный метод ORM: возвращает родительский класс для коллекций для CurrencyRateTable — Collection. Полезен в универсальном коде, который работает с разными сущностями, и в наследниках, которые подменяют свои классы.

use Bitrix\Main\Loader;
use Bitrix\Currency\CurrencyRateTable;

Loader::includeModule('currency');

$class = CurrencyRateTable::getCollectionParentClass();
// Collection

Собственные методы CurrencyRateTable

getCollectionParentClass() есть и у других классов модуля «Валюты»: CurrencyLangTable, CurrencyTable.

Исходный файл: source/currency/lib/currencyrate.php:204

Что будем искать? Например,Продвижение