本文整理匯總了PHP中Piwik\Period\Range::isMultiplePeriod方法的典型用法代碼示例。如果您正苦於以下問題:PHP Range::isMultiplePeriod方法的具體用法?PHP Range::isMultiplePeriod怎麽用?PHP Range::isMultiplePeriod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Piwik\Period\Range
的用法示例。
在下文中一共展示了Range::isMultiplePeriod方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: filter
public function filter($table)
{
foreach ($table->getRows() as $row) {
$typeReferrer = $row->getColumn('label');
if ($typeReferrer != Common::REFERRER_TYPE_DIRECT_ENTRY) {
if (!$this->expanded) {
$row->setNonLoadedSubtableId($typeReferrer);
} else {
if (!Range::isMultiplePeriod($this->date, $this->period)) {
// otherwise, we have to get the other datatables
// NOTE: not yet possible to do this w/ DataTable\Map instances
// (actually it would be maybe possible by using $map->mergeChildren() or so build it would be slow)
$subtable = API::getInstance()->getReferrerType($this->idSite, $this->period, $this->date, $this->segment, $type = false, $idSubtable = $typeReferrer);
if ($this->expanded) {
$subtable->applyQueuedFilters();
}
$row->setSubtable($subtable);
}
}
}
}
}