本文整理汇总了PHP中Statistics::updateVisitorStatistics方法的典型用法代码示例。如果您正苦于以下问题:PHP Statistics::updateVisitorStatistics方法的具体用法?PHP Statistics::updateVisitorStatistics怎么用?PHP Statistics::updateVisitorStatistics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Statistics
的用法示例。
在下文中一共展示了Statistics::updateVisitorStatistics方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateVisitorStatistics
function updateVisitorStatistics($blogid)
{
return Statistics::updateVisitorStatistics($blogid);
}
示例2: getBlogId
<?php
/// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$blogid = getBlogId();
Statistics::updateVisitorStatistics($blogid);
$stats = Statistics::getStatistics($blogid);
if (!empty($entries) && count($entries) == 1) {
$pageTitle = $entries[0]['title'];
} else {
$pageTitle = '';
}
if (!isset($skin)) {
$skin = new Skin($context->getProperty('skin.skin'));
}
$view = $skin->outter;
$view = str_replace('[##_SKIN_head_end_##]', getScriptsOnHead() . '[##_SKIN_head_end_##]', $view);
// TO DO : caching this part.
$view = str_replace('[##_SKIN_body_start_##]', getUpperView(isset($paging) ? $paging : null) . '[##_SKIN_body_start_##]', $view);
$view = str_replace('[##_SKIN_body_end_##]', getLowerView() . getScriptsOnFoot() . '[##_SKIN_body_end_##]', $view);
// care the order for js function overloading issue.
$automaticLink = "\t<link rel=\"stylesheet\" href=\"" . $context->getProperty('uri.service') . "/resources/style/system.css\" type=\"text/css\" media=\"screen\" />\n";
dress('SKIN_head_end', $automaticLink . "[##_SKIN_head_end_##]", $view);
if ($context->getProperty('blog.useBlogIconAsIphoneShortcut') == true && file_exists(__TEXTCUBE_ATTACH_DIR__ . "/" . $context->getProperty('blog.id') . "/index.gif")) {
dress('SKIN_head_end', '<link rel="apple-touch-icon" href="' . $context->getProperty('uri.default') . "/index.gif" . '" />' . "[##_SKIN_head_end_##]", $view);
}
if (defined('__TEXTCUBE_COVER__')) {
dress('body_id', "tt-body-cover", $view);
} else {
if (!empty($category)) {