本文整理汇总了PHP中Admin_DA::getConversions方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_DA::getConversions方法的具体用法?PHP Admin_DA::getConversions怎么用?PHP Admin_DA::getConversions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_DA
的用法示例。
在下文中一共展示了Admin_DA::getConversions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$aDates['day_end'] = $oDayDate->format('%Y-%m-%d');
break;
case 'd':
default:
$aDates['day'] = $oDayDate->format('%Y-%m-%d');
break;
}
}
}
// Restrict to the current manager ID
$aParams['agency_id'] = OA_Permission::getAgencyId();
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
// Get conversions - additional security check which allow to edit only those conversions visible to user
$aConversions = Admin_DA::getConversions($aParams + $aDates);
if (!empty($aConversions)) {
$conf = $GLOBALS['_MAX']['CONF'];
$modified = false;
// Modify conversions
foreach ($statusIds as $conversionId => $statusId) {
if (isset($aConversions[$conversionId]) && $aConversions[$conversionId]['connection_status'] != $statusId) {
$modified = true;
// Edit conversion
$doData_intermediate_ad_connection = OA_Dal::factoryDO('data_intermediate_ad_connection');
$doData_intermediate_ad_connection->get($conversionId);
$doData_intermediate_ad_connection->connection_status = $statusId;
$doData_intermediate_ad_connection->update();
if ($aConversions[$conversionId]['connection_status'] == MAX_CONNECTION_STATUS_APPROVED || $statusId == MAX_CONNECTION_STATUS_APPROVED) {
// Connection was changed to conversion (or conversion was changed to connection)
$aConVariables = Admin_DA::fromCache('getConnectionVariables', $conversionId);