...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/mysql/crm_product_row.php
- Класс: \CCrmProductRow
- Вызов: CCrmProductRow::LoadSettings
static function LoadSettings($ownerType, $ownerID) { $ownerType = strval($ownerType); $ownerID = intval($ownerID); global $DB; $tableName = self::CONFIG_TABLE_NAME; $ownerType = $DB->ForSql($ownerType); $dbResult = $DB->Query("SELECT SETTINGS FROM {$tableName} WHERE OWNER_TYPE = '{$ownerType}' AND OWNER_ID = {$ownerID}", false, 'File: '.__FILE__.'
Line: '.__LINE__); $fields = is_object($dbResult) ? $dbResult->Fetch() : null; $s = is_array($fields) && isset($fields['SETTINGS']) ? $fields['SETTINGS'] : ''; if($s === '') { return array(); } return unserialize($s, ['allowed_classes' => false]); }