本文整理汇总了PHP中JemHelper::arrayUnique方法的典型用法代码示例。如果您正苦于以下问题:PHP JemHelper::arrayUnique方法的具体用法?PHP JemHelper::arrayUnique怎么用?PHP JemHelper::arrayUnique使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JemHelper
的用法示例。
在下文中一共展示了JemHelper::arrayUnique方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$multidaydate .= JemOutput::formatSchemaOrgDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
} elseif ($multi->row == 'zlast') {
$multidaydate .= JemOutput::formatShortDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
$multidaydate .= JemOutput::formatSchemaOrgDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
} else {
$multidaydate .= JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
$multidaydate .= JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
}
$multidaydate .= '</div>';
//generate the output
$content .= JemHelper::caltooltip($catname . $eventname . $timeTip . $venue, $eventdate, $row->title, $detaillink, 'hasTooltip', $timeHtml, $category->color);
$content .= $colorpic;
$content .= $contentend;
$this->cal->setEventContent($year, $month, $day, $content);
}
$catinfo = JemHelper::arrayUnique($catinfo);
// create hidden input fields
foreach ($catinfo as $val) {
echo "<input name='category" . $val['catid'] . "' type='hidden' value='" . $val['color'] . "'>";
}
echo "<input id='usebgcatcolor' name='usebgcatcolor' type='hidden' value='" . $this->params->get('usebgcatcolor', '0') . "'>";
# output of calendar
$currentWeek = $this->currentweek;
$nrweeks = $this->params->get('nrweeks', 1);
echo $this->cal->showWeeksByID($currentWeek, $nrweeks);
?>
<div id="jlcalendarlegend">
<div class="calendarButtons">
<div class="calendarButtonsToggle">
<div id="buttonshowall" class="calendarButton">