本文整理汇总了PHP中_limitationsIsCapped函数的典型用法代码示例。如果您正苦于以下问题:PHP _limitationsIsCapped函数的具体用法?PHP _limitationsIsCapped怎么用?PHP _limitationsIsCapped使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_limitationsIsCapped函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _limitationsIsZoneCapped
/**
* A "private" function to test if a zone is capped as a result of a zone capping or
* zone session capping limitation.
*
* @access private
* @param integer $zoneId The ID of the zone to check.
* @param integer $cap The total number of times the zone is to be shown to a viewer.
* @param integer $sessionCap Optional total number of times the zone is to be shown
* to a viewer in a session.
* @return boolean True if the zone is capped, false otherwise.
*/
function _limitationsIsZoneCapped($zoneId, $cap, $sessionCap = 0, $block, $showCappedNoCookie)
{
// We set $showCappedNoCookie to false to keep zone capping behaviour the same as
// in previous versions of OpenX, ie, if a zone is capped, don't show the ad to a
// viewer without cookies.
return _limitationsIsCapped('Zone', $zoneId, $cap, $sessionCap, $block, $showCappedNoCookie);
}
示例2: _limitationsIsZoneCapped
function _limitationsIsZoneCapped($zoneId, $cap, $sessionCap = 0, $block, $showCappedNoCookie)
{
return _limitationsIsCapped('Zone', $zoneId, $cap, $sessionCap, $block, $showCappedNoCookie);
}
示例3: _limitationsIsZoneCapped
function _limitationsIsZoneCapped($zoneId, $cap, $sessionCap = 0, $block)
{
return _limitationsIsCapped('Zone', $zoneId, $cap, $sessionCap, $block);
}