• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/data/datamanager.php
  • Класс: Bitrix\Main\ORM\Data\DataManager
  • Вызов: DataManager::cryptoEnabled
static function cryptoEnabled($field, $table = null)
{
	if($table === null)
	{
		$table = static::getTableName();
	}
	$optionString = Main\Config\Option::get("main", "~crypto_".$table);
	if($optionString <> '')
	{
		$field = strtoupper($field);
		$options = unserialize($optionString, ['allowed_classes' => false]);
		if(isset($options[$field]) && $options[$field] === true)
		{
			return true;
		}
	}
	return false;
}