本文整理汇总了PHP中FeedItem::getFeedItemCount方法的典型用法代码示例。如果您正苦于以下问题:PHP FeedItem::getFeedItemCount方法的具体用法?PHP FeedItem::getFeedItemCount怎么用?PHP FeedItem::getFeedItemCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeedItem
的用法示例。
在下文中一共展示了FeedItem::getFeedItemCount方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _t
}
?>
</span></li>
<?php
}
} else {
?>
<li class="empty"><?php echo _t('수집된 글이 없습니다.');?></span>
<?php
}
if($is_admin) {
$feedItemCount = FeedItem::getFeedItemCount('WHERE i.visibility = "y"');
$feedItemUpdate = Feed::getFeedLastUpdate('WHERE i.visibility = "y"');
} else {
$feedItemCount = FeedItem::getFeedItemCount('WHERE i.visibility = "y" AND i.feed IN ('.implode(',',$feedIds).')');
$feedItemUpdate = Feed::getFeedLastUpdate('WHERE i.visibility = "y" AND i.feed IN ('.implode(',',$feedIds).')');
}
if(!empty($feedItemUpdate)) {
$feedItemUpdateText = Func::dateToString($feedItemUpdate);
} else {
$feedItemUpdateText = _t('업데이트 없음');
}
?>
</ul>
</div>
<div class="information">
<span class="name"><?php echo _t("전체글");?></span> <span class="sep">|</span> <span class="count"><?php echo $feedItemCount;?></span>개 <span class="name"><?php echo _t('마지막 업데이트');?></span> <span class="sep">|</span> <span class="date"><?php echo empty($feedItemUpdate)?'':date('y.m.d H:i:s', $feedItemUpdate);?> (<?php echo $feedItemUpdateText;?>)</span>
</div>
</div>
<!-- 최근 등록된 블로그.. -->
示例2: WHERE
if(isset($accessInfo['action'])) {
$id = $accessInfo['action'];
$post = FeedItem::getFeedItem($id);
FeedItem::edit($post['id'], 'click', $post['click']+1);
$page = FeedItem::getPageFromWritten($post['written']);
if(!isAdmin()) {
$filter = ' WHERE (i.visibility = "y") AND (i.feedVisibility = "y") ';
} else {
$filter = ' WHERE (i.visibility != "d") ';
}
$pageCut = 5;
$pageCount = 1;
$paging = Func::makePaging($page, $pageCount, FeedItem::getFeedItemCount($filter), $pageCut);
$pageCount = $paging['pageEnd'] - $paging['pageStart'] + 1;
$result = FeedItem::getIdListFromPage($paging['pageStart'], $filter ,$pageCount);
$pageDatas = array();
$start = $paging['pageStart']-1;
if($start <= 0) $start = 1;
for($i=0;$i<count($result);$i++) {
$item = $result[$i];
$pageDatas[$start++] = '/read/'.$item['id'];
}
$paging['pageDatas'] = $pageDatas;
}
示例3: empty
$skin->replace('base_url', empty($service['path'])?'/':$servicePath.'/');
$skin->replace('index_url', $servicePath);
$skin->replace('rss_url', $servicePath.'/rss');
$skin->replace('focus_rss_url', $servicePath.'/rss/focus');
$skin->replace('base_domain', $_SERVER['HTTP_HOST'].$servicePath);
$skin->replace('bloglounge_name', BLOGLOUNGE);
$skin->replace('bloglounge_version', BLOGLOUNGE_NAME);
$skin->replace('random_blog', $service['path'].'/random');
$skin->replace('position', empty($accessInfo['controller'])?'index':$accessInfo['controller']);
// ** 갯수 정보
$skin->replace('feed_count', Feed::getFeedCount());
$skin->replace('feeditem_count', FeedItem::getFeedItemCount());
$skin->replace('tag_count', Tag::getTagCount());
// *** 로고
$s_logo = $skin->cutSkinTag('logo_image');
$s_logo = $skin->parseTag('logo_url', $servicePath.'/cache/logo/'.$config->logo, $s_logo);
$skin->dress('logo_image', $s_logo);
if(!empty($config->logo) && file_exists(ROOT.'/cache/logo/'.$config->logo)) {
$skin->replace('logo_image_exist', 'logo_image_exist');
} else {
$skin->replace('logo_image_exist', 'logo_image_nonexistence');
}
$s_logo = $skin->cutSkinTag('logo_text');
$skin->dress('logo_text', $s_logo);
示例4: getFeedItems
function getFeedItems($searchType, $searchKeyword, $searchExtraValue, $page, $pageCount, $viewDelete = false, $owner = 0, $customQuery = '') {
global $db, $database;
$sQuery = FeedItem::getFeedItemsQuery($searchType, $searchKeyword, $searchExtraValue,$viewDelete,$owner) . $customQuery;
// for customQuery
if(strpos($customQuery,'f.') !== false && strpos($sQuery, 'Feeds f') === false ) {
$sQuery = ' LEFT JOIN '.$database['prefix'].'Feeds f ON (f.id = i.feed) ' . $sQuery;
}
$pageStart = ($page-1) * $pageCount; // 처음페이지 번호
$sQuery = ' LEFT JOIN '.$database['prefix'].'CategoryRelations c ON (c.item = i.id) ' . $sQuery;
$feedList = $db->queryAll('SELECT i.id, i.feed, i.author, i.permalink, i.title, i.description, i.tags, i.written, i.click, i.thumbnailId, i.visibility, i.feedVisibility, i.boomUp, i.boomDown, c.category AS category, i.focus FROM '.$database['prefix'].'FeedItems i '.$sQuery.' GROUP BY i.id ORDER BY i.written DESC LIMIT '.$pageStart.','.$pageCount);
$feedItemCount = FeedItem::getFeedItemCount($sQuery);
return array($feedList, $feedItemCount);
}