本文整理汇总了PHP中FeedItem::getFeedItems方法的典型用法代码示例。如果您正苦于以下问题:PHP FeedItem::getFeedItems方法的具体用法?PHP FeedItem::getFeedItems怎么用?PHP FeedItem::getFeedItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeedItem
的用法示例。
在下文中一共展示了FeedItem::getFeedItems方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
define('ROOT', '..');
include ROOT . '/lib/include.php';
$searchFeedId = $accessInfo['action'];
$searchType = 'blogURL';
if(is_numeric($searchFeedId)) {
$searchKeyword = 'http://'.str_replace('http://', '', Feed::get($searchFeedId, 'blogURL'));
$searchExtraValue = $searchFeedId;
} else {
$searchKeyword = 'http://'.str_replace('http://', '', $accessInfo['address']);
$searchExtraValue = Feed::blogURL2Id('http://'.str_replace('http://', '', $searchKeyword));
}
include ROOT . '/lib/begin.php';
$pageCount = $skinConfig->postList; // ÆäÀÌÁö°¹¼ö
list($posts, $totalFeedItems) = FeedItem::getFeedItems($searchType, $searchKeyword, $searchExtraValue, $page, $pageCount);
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
include ROOT . '/lib/piece/message.php';
include ROOT . '/lib/piece/postlist.php';
include ROOT . '/lib/end.php';
?>
示例2: drawAdminBoxEnd
}
} else {
?>
<li class="empty">글이 없습니다.</li>
<?php
}
?>
</ul>
</div>
<?php echo drawAdminBoxEnd();?>
</div>
<!-- new version -->
<div id="new_version_sidebar" class="sidebar_item">
<?php
list($feedItems, $totalFeedItems) = FeedItem::getFeedItems('blogURL','itcanus.net/bloglounge_download',Feed::blogURL2Id('http://itcanus.net/bloglounge_download'),1,10);
if($totalFeedItems==0) { // 자동등록된 공지사항 피드를 삭제하였을경우 .. 동적으로 읽어 온다.
list($status, $feed, $xml) = Feed::getRemoteFeed('http://itcanus.net/bloglounge_download/rss');
if($status == 0) {
$feedItems = Feed::getFeedItems($xml);
if(count($feedItems) > 10) $feedItems = array_slice($feedItems, 0,10);
$totalFeedItems = count($feedItems);
}
}
?>
<?php echo drawAdminBoxBegin('new_version');?>
<div class="title">
<a href="http://itcanus.net/bloglounge_download" target="_blank"><?php echo _t('다운로드');?></a> <span class="subtitle"><?php echo _t('현재버전');?> v<?php echo BLOGLOUNGE_VERSION;?></span>
</div>
<div class="line"></div>
<div class="data">
示例3:
<?php
define('ROOT', '..');
include ROOT . '/lib/include.php';
include ROOT . '/lib/begin.php';
$customQuery = $event->on('Query.feedItems', '');
$pageCount = $skinConfig->postList; // ÆäÀÌÁö°¹¼ö
list($posts, $totalFeedItems) = FeedItem::getFeedItems('focus', 'y', '', $page, $pageCount, false, 0, $customQuery);
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
include ROOT . '/lib/piece/message.php';
include ROOT . '/lib/piece/postlist.php';
include ROOT . '/lib/end.php';
?>
示例4: if
$searchExtraValue = $searchFeedId;
}
} else if($searchType=='archive') { // 날짜..
$targetDate = (!Validator::is_digit($searchKeyword) || strlen($searchKeyword) != 8) ? date("Ymd") : $searchKeyword;
$tDate = substr($targetDate, 0, 4).'-'.substr($targetDate, 4, 2).'-'.substr($targetDate, 6, 2);
$tStart = strtotime("$tDate 00:00:00");
if(isset($accessInfo['pass'][0]) && Validator::is_digit($accessInfo['pass'][0]) && strlen($accessInfo['pass'][0]) == 8) {
$targetDate = $accessInfo['pass'][0];
$tDate = substr($targetDate, 0, 4).'-'.substr($targetDate, 4, 2).'-'.substr($targetDate, 6, 2);
$tEnd = strtotime("$tDate 00:00:00");
$searchExtraValue = array('start'=>$tStart,'end'=>$tEnd);
} else {
$searchExtraValue = $tStart;
}
}
include ROOT . '/lib/begin.php';
$customQuery = $event->on('Query.feedItems', '');
$pageCount = $skinConfig->postList; // 페이지갯수
list($posts, $totalFeedItems) = FeedItem::getFeedItems($searchType, $searchKeyword, $searchExtraValue, $page, $pageCount, false, 0, $customQuery);
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
include ROOT . '/lib/piece/message.php';
include ROOT . '/lib/piece/postlist.php';
include ROOT . '/lib/end.php';
?>
示例5: getFeedItemsByOwner
function getFeedItemsByOwner($owner, $searchType, $searchKeyword, $searchExtraValue, $page, $pageCount, $viewDelete = false) {
return FeedItem::getFeedItems($searchType, $searchKeyword, $searchExtraValue, $page, $pageCount, $viewDelete, $owner);
}
示例6: getIssueFocus
//.........这里部分代码省略.........
<?php
$javascript = ob_get_contents();
ob_end_clean();
$skin->javascript($javascript);
if($config['issueType'] == 'auto') {
$issueTags = Tag::getIssueTags($config['issueCount']);
} else {
$issueTags = explode(',', $config['issueTag']);
foreach($issueTags as $key=>$tag) {
$issueTags[$key] = array('name'=>trim($tag));
}
}
ob_start();
?>
<div class="issueFocus">
<ul class="menu" onmouseout="issueFocusMouseOut();">
<?php
// 포커스
if($config['useFocus']) {
$focusFeedItems = FeedItem::getRecentFocusFeedItems($config['focusCount']);
?>
<li id="_issueFocus_focus_menu" class="selected _issueFocus_menu" onclick="goto('<?php echo $service['path'];?>/focus'); return false;" onmouseover="issueFocusMouseOverMenu('_issueFocus_focus');">포커스</li>
<?php
}
// 이슈태그
$index = 0;
foreach($issueTags as $key=>$tag) {
list($issueTags[$key]['feedItems'], $totalFeedItemCount) = FeedItem::getFeedItems('tag', $tag['name'], null, 1, $config['issueFeedCount']);
$index++;
?>
<li id="_issueFocus_<?php echo $index;?>_menu" class="<?php echo (!$config['useFocus']&&($index==1))?'selected ':'';?>_issueFocus_menu" onclick="goto('<?php echo $service['path'];?>/search/tag/<?php echo rawurlencode($tag['name']);?>'); return false;" onmouseover="issueFocusMouseOverMenu('_issueFocus_<?php echo $index;?>');" title="클릭하시면 태그검색이 가능합니다."><?php echo $tag['name'];?></li>
<?php
}
?>
</ul>
<div class="clear"></div>
<?php
// 포커스 내용
if($config['useFocus']) {
?>
<ul id="_issueFocus_focus_item" class="item _issueFocus_item viewed">
<?php
if(count($focusFeedItems)>0) {
foreach($focusFeedItems as $feedItem) {
$thumbnailFile = '';
if($media = Media::getMedia($feedItem['thumbnailId'])) {
$thumbnailFile = Media::getMediaFile($media['thumbnail']);
}
$link_url = $config->addressType == 'id' ? $service['path'].'/go/'.$feedItem['id'] : $service['path'].'/go/'.$feedItem['permalink'];
?>
<li>
<?php
if(!empty($thumbnailFile)) {
?>
<div class="thumbnail">
<img src="<?php echo $thumbnailFile;?>" alt="미리보기" />
</div>
示例7: getMagazineFocus
//.........这里部分代码省略.........
@chmod($path, 0777);
}
$media = new Media;
foreach($focusImages as $item) {
if(!file_exists($path.'/'.$item['id'].'.jpg')) {
$media->getThumbnail($item['source'], 350, 160, $path, $item['id'], 'crop');
}
}
// 이슈태그
if($config['issueType'] == 'auto') {
$issueTags = Tag::getIssueTags($config['issueCount']);
} else {
$issueTags = explode(',', $config['issueTag']);
foreach($issueTags as $key=>$tag) {
$issueTags[$key] = array('name'=>trim($tag));
}
}
// 이슈태그
ob_start();
?>
<div class="magazineFocusWrap">
<table class="magazineFocusTable" cellpadding="0" cellspacing="0">
<tr>
<td class="leftTab">
<ul>
<?php
$index = 0;
foreach($issueTags as $key=>$tag) {
list($issueTags[$key]['feedItems'], $totalFeedItemCount) = FeedItem::getFeedItems('tag', $tag['name'], null, 1, $config['issueFeedCount']);
$index++;
?>
<li id="_magazineFocus_<?php echo $index;?>_menu" class="<?php echo ($index==1)?'first selected ':'';?>_magazineFocus_menu" onclick="goto('<?php echo $service['path'];?>/search/tag/<?php echo rawurlencode($tag['name']);?>'); return false;" onmouseover="magazineFocusMouseOverMenu('_magazineFocus_<?php echo $index;?>');" title="클릭하시면 태그검색이 가능합니다."><span><?php echo UTF8::lessen($tag['name'],10);?></span></li>
<?php
}
?> <li class="dummy"></li>
</ul>
</td>
<td class="mainData">
<?php
// 이슈태그 내용
$index = 0;
foreach($issueTags as $tag) {
$index ++;
?>
<ul id="_magazineFocus_<?php echo $index;?>_item" class="item _magazineFocus_item<?php echo ($index==1)?' viewed':'';?>">
<?php
if(count($tag['feedItems'])>0) {
$feedItem = current($tag['feedItems']);
$thumbnailFile = '';
if($media = Media::getMedia($feedItem['thumbnailId'])) {
$thumbnailFile = Media::getMediaFile($media['thumbnail']);
}
$link_url = $config->addressType == 'id' ? $service['path'].'/go/'.$feedItem['id'] : $service['path'].'/go/'.$feedItem['permalink'];
?>
<li>
<?php
if(!empty($thumbnailFile)) {
?>
示例8: rawurlencode
$params = '';
if(!empty($keyword)) {
$params = '&keyword=' . rawurlencode($keyword) . '&type=' . $type;
if(!empty($read)) { $page = FeedItem::getPredictionPage($read, $pageCount, $type,$keyword); }
if($is_admin) {
list($posts, $totalFeedItems) = FeedItem::getFeedItems($type,$keyword,'',$page,$pageCount);
} else {
list($posts, $totalFeedItems) = FeedItem::getFeedItemsByOwner(getLoggedId(), $type,$keyword,'',$page,$pageCount);
}
} else {
if($is_admin)
{if(!empty($read)) { $page = FeedItem::getPredictionPage($read,$pageCount); }
list($posts, $totalFeedItems) = FeedItem::getFeedItems('','','',$page,$pageCount);
} else {
if(!empty($read)) { $page = FeedItem::getPredictionPageByOwner(getLoggedId(),$read,$pageCount); }
list($posts, $totalFeedItems) = FeedItem::getFeedItemsByOwner(getLoggedId(),'','','',$page,$pageCount);
}
}
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
$categories = Category::getList();
$categoryList = array();
$categoryList[0] = array('id'=>'0', 'name'=>_t('분류없음'));
foreach($categories as $category) {
$categoryList[ $category['id'] ] = array('id'=>$category['id'], 'name'=>$category['name']);
示例9: exportFunction_iframe
function exportFunction_iframe($params, $exportConfig) {
global $export, $service, $config, $event;
$page = isset($params['get']['page'])?$params['get']['page']:1;
if($page <= 0) $page = 1;
$thumbnail = isset($exportConfig) && isset($exportConfig['thumbnail']) ? Validator::getBool($exportConfig['thumbnail']) : true;
$pageCount = isset($exportConfig) && isset($exportConfig['count']) ? $exportConfig['count'] : 10;
$newWindow = isset($exportConfig) && isset($exportConfig['popup']) ? Validator::getBool($exportConfig['popup']) : true;
$categoryView = isset($exportConfig) && isset($exportConfig['category_view']) ? Validator::getBool($exportConfig['category_view']) : false;
$focusView = isset($exportConfig) && isset($exportConfig['focus_view']) ? ($exportConfig['focus_view'] == 'focus' ? true : false) : false;
if($focusView) {
list($posts, $totalFeedItems) = FeedItem::getFeedItems('focus', 'y', '', $page, $pageCount);
} else {
if($categoryView) {
$categoryValue = isset($exportConfig) && isset($exportConfig['category']) ? $exportConfig['category'] : '';
list($posts, $totalFeedItems) = FeedItem::getFeedItems('category', $categoryValue, '', $page, $pageCount);
} else {
list($posts, $totalFeedItems) = FeedItem::getFeedItems('', '', '', $page, $pageCount);
}
}
$paging = Func::makePaging($page, $pageCount, $totalFeedItems);
requireComponent('LZ.PHP.Media');
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $config->title;?></title>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $export->exportURL;?>/style.css" />
<link rel="shortcut icon" href="<?php echo $service['path'];?>/images/favicon.ico" />
</head>
<body>
<div id="export_iframe_wrap">
<ul>
<?php
foreach($posts as $post) {
$post['thumbnail'] = '';
if($media = Media::getMedia($post['thumbnailId'])) {
$post['thumbnail'] = $media['thumbnail'];
}
$thumbnailFile = $event->on('Text.postThumbnail', Media::getMediaFile($post['thumbnail']));
$post['description'] = func::stripHTML($post['description'].'>');
if (substr($post['description'], -1) == '>') $post['description'] = substr($post['description'], 0, strlen($post['description']) - 1);
$post_description = UTF8::lessenAsByte(func::htmltrim($post['description']), 300);
if (strlen($post_description) == 0) $post_description = '<span class="empty">'._t('(글의 앞부분이 이미지 혹은 HTML 태그만으로 되어있습니다)').'</span>';
$post_description = $event->on('Text.postDescription', $post_description);
?>
<li class="<?php echo empty($thumbnailFile)||!$thumbnail?'thumbnail_nonexistence':'';?>">
<?php
if($thumbnail) {
$link_url = $config->addressType == 'id' ? $service['path'].'/go/'.$post['id'] : $service['path'].'/go/'.$post['permalink'];
if(!empty($post['thumbnail'])) {
?>
<div class="thumbnail">
<a href="<?php echo $link_url;?>" target="<?php echo $newWindow?'_blank':'_parent';?>"><img src="<?php echo $thumbnailFile;?>" alt="thumnail" /></a>
</div>
<?php
}
}
?>
<div class="data">
<h3><a href="<?php echo $link_url;?>" target="<?php echo $newWindow?'_blank':'_parent';?>"><?php echo UTF8::clear($event->on('Text.postTitle', func::stripHTML($post['title'])));?></a></h3>
<p><?php echo $post_description;?></p>
</div>
<div class="clear"></div>
</li>
<?php
}
?>
</ul>
<div class="paging">
<?php echo func::printPaging($paging);?>
</div>
</div>
</body>
</html>
<?php
$content = ob_get_contents();
ob_end_clean();
return $content;
}