35 foreach ($queries as $query)
37 self::prepare($query, $dataTypeId);
40 $query = array_pop($queries);
41 foreach ($queries as $unionQuery)
43 $query->unionAll($unionQuery);
50 $query->setOffset(
$nav->getOffset());
51 $query->setLimit(
$nav->getLimit());
55 $query->setUnionOffset(
$nav->getOffset());
56 $query->setUnionLimit(
$nav->getLimit());
152 Recipient\Type::EMAIL => array(
'EMAIL'),
153 Recipient\Type::PHONE => array(
'PHONE'),
154 Recipient\Type::IM => array(
'IM' =>
'IMOL'),
155 Recipient\Type::CRM_CONTACT_ID => array(
'CRM_CONTACT_ID'),
156 Recipient\Type::CRM_COMPANY_ID => array(
'CRM_COMPANY_ID'),
160 if (isset($map[$dataTypeId]))
162 $fields = $map[$dataTypeId];
167 $fields = call_user_func_array(
'array_merge', array_values($map));