本文整理汇总了PHP中Admin_DA::getChannelLimitations方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_DA::getChannelLimitations方法的具体用法?PHP Admin_DA::getChannelLimitations怎么用?PHP Admin_DA::getChannelLimitations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_DA
的用法示例。
在下文中一共展示了Admin_DA::getChannelLimitations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$translated_message = $translation->translate($GLOBALS['strChannelAclHasBeenUpdated'], array(MAX::constructURL(MAX_URL_ADMIN, "channel-edit.php?" . (!empty($affiliateid) ? "affiliateid={$affiliateid}&" : "") . "channelid={$channelid}"), htmlspecialchars($doChannel->name)));
OA_Admin_UI::queueMessage($translated_message, 'local', 'confirm', 0);
// Redirect
if (!empty($affiliateid)) {
header("Location: channel-acl.php?affiliateid={$affiliateid}&channelid={$channelid}");
} else {
header("Location: channel-acl.php?channelid={$channelid}");
}
exit;
}
}
}
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
MAX_displayNavigationChannel($pageName, $aOtherChannels, $aEntities);
$aChannel = Admin_DA::getChannel($channelid);
if (!isset($acl)) {
$acl = Admin_DA::getChannelLimitations(array('channel_id' => $channelid));
// This array needs to be sorted by executionorder, this should ideally be done in SQL
// When we move to DataObject this should be addressed
ksort($acl);
}
if (!empty($affiliateid)) {
$aParams = array('affiliateid' => $affiliateid, 'channelid' => $channelid);
} else {
$aParams = array('agencyid' => $agencyId, 'channelid' => $channelid);
}
MAX_displayAcls($acl, $aParams);
echo "<br /><input type='submit' name='submit' value='{$GLOBALS['strSaveChanges']}' tabindex='" . $tabindex++ . "'></form>";
phpAds_PageFooter();