...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/activity/markstatistics.php
- Класс: Bitrix\Crm\Widget\Data\Activity\MarkStatistics
- Вызов: MarkStatistics::getPresets
static function getPresets() { static::includeModuleFile(); $result = array(); $categories = static::getProviderCategories(CommunicationStatistics::STATISTICS_MARKS); foreach ($categories as $categoryId => $presetPrefix) { $result[] = array( 'entity' => \CCrmOwnerType::ActivityName, 'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_TOTAL'), 'name' => self::TYPE_NAME.'::'.$presetPrefix.':TOTAL', 'source' => self::TYPE_NAME, 'select' => array( 'name' => 'TOTAL', 'aggregate' => 'COUNT' ), 'context' => DataContext::ENTITY, 'category' => $categoryId, 'grouping' => array('extras' => array(self::GROUP_BY_SOURCE, self::GROUP_BY_MARK)) ); $result[] = array( 'entity' => \CCrmOwnerType::ActivityName, 'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_NONE_QTY'), 'name' => self::TYPE_NAME.'::'.$presetPrefix.':NONE_QTY', 'source' => self::TYPE_NAME, 'select' => array( 'name' => 'NONE_QTY', 'aggregate' => 'COUNT' ), 'context' => DataContext::ENTITY, 'category' => $categoryId, 'grouping' => array('extras' => array(self::GROUP_BY_SOURCE, self::GROUP_BY_MARK)) ); $result[] = array( 'entity' => \CCrmOwnerType::ActivityName, 'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_NEGATIVE_QTY'), 'name' => self::TYPE_NAME.'::'.$presetPrefix.':NEGATIVE_QTY', 'source' => self::TYPE_NAME, 'select' => array( 'name' => 'NEGATIVE_QTY', 'aggregate' => 'COUNT' ), 'context' => DataContext::ENTITY, 'category' => $categoryId, 'grouping' => array('extras' => array(self::GROUP_BY_SOURCE, self::GROUP_BY_MARK)) ); $result[] = array( 'entity' => \CCrmOwnerType::ActivityName, 'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_POSITIVE_QTY'), 'name' => self::TYPE_NAME.'::'.$presetPrefix.':POSITIVE_QTY', 'source' => self::TYPE_NAME, 'select' => array( 'name' => 'POSITIVE_QTY', 'aggregate' => 'COUNT' ), 'context' => DataContext::ENTITY, 'category' => $categoryId, 'grouping' => array('extras' => array(self::GROUP_BY_SOURCE, self::GROUP_BY_MARK)) ); } return $result; }