本文整理汇总了PHP中notifications::getProjectsTipFrl方法的典型用法代码示例。如果您正苦于以下问题:PHP notifications::getProjectsTipFrl方法的具体用法?PHP notifications::getProjectsTipFrl怎么用?PHP notifications::getProjectsTipFrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notifications
的用法示例。
在下文中一共展示了notifications::getProjectsTipFrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: iconv
if ($tip === null) {
$out['tu']['success'] = false;
} else {
$out['tu']['success'] = true;
$out['tu']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']);
$out['tu']['count'] = $tip['count'];
$out['tu']['count_html'] = view_event_count_format($tip['count']);
$out['tu']['link'] = $tip['link'];
}
}
// новые события в проектах
if (in_array('prj', $op)) {
if (is_emp()) {
$tip = notifications::getProjectsTipEmp();
} else {
$tip = notifications::getProjectsTipFrl();
}
if ($tip === null) {
$out['prj']['success'] = false;
} else {
$out['prj']['success'] = true;
$out['prj']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']);
$out['prj']['count'] = $tip['count'];
$out['prj']['count_html'] = view_event_count_format($tip['count']);
$out['prj']['link'] = $tip['link'];
}
}
// новые сообщения
if (in_array('msg', $op)) {
$out['msg'] = array();
$tip = notifications::getMessTip(true);