本文整理汇总了PHP中Feed::getFeedsByOwner方法的典型用法代码示例。如果您正苦于以下问题:PHP Feed::getFeedsByOwner方法的具体用法?PHP Feed::getFeedsByOwner怎么用?PHP Feed::getFeedsByOwner使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feed
的用法示例。
在下文中一共展示了Feed::getFeedsByOwner方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateFeed
$sQuery = ' owner = ' . $id;
} else {
$sQuery = ' title LIKE "%' . $keyword . '%"';
}
if(!empty($read)) { $page = Feed::getPredictionPage($read,$pageCount,$sQuery); }
if($is_admin) {
list($feeds, $totalFeeds) = Feed::getFeeds($page,$pageCount,$sQuery);
} else {
list($feeds, $totalFeeds) = Feed::getFeedsByOwner(getLoggedId(), $page, $pageCount,$sQuery);
}
} else {
if(!empty($read)) { $page = Feed::getPredictionPage($read,$pageCount); }
if($is_admin) {
list($feeds, $totalFeeds) = Feed::getFeeds($page,$pageCount);
} else {
list($feeds, $totalFeeds) = Feed::getFeedsByOwner(getLoggedId(), $page, $pageCount);
}
}
$paging = Func::makePaging($page, $pageCount, $totalFeeds);
$config = new Settings;
requireComponent('Bloglounge.Data.Groups');
$groups = Group::getGroupsAll();
?>
<script type="text/javascript">
function updateFeed(id) {
addMessage("<?php echo _t('블로그를 업데이트합니다.');?>");
示例2: _t
<li><a href="<?php echo $service['path'];?>/admin/blog/add"><?php echo _t('블로그추가');?></a></li>
</ul>
</div>
<?php echo drawAdminBoxEnd();?>
</div>
</div> <!-- sidebar close -->
<div class="contents">
<div class="contents_item">
<?php echo drawAdminBoxBegin('recent_feed_n_item');?>
<!-- 최근 글.. -->
<?php
if($is_admin) {
$feedItems = FeedItem::getRecentFeedItems(10);
} else {
list($feeds, $totalFeedCount) = Feed::getFeedsByOwner(getLoggedId(), 'all');
$feedIds = array();
foreach($feeds as $feed) {
array_push($feedIds, $feed['id']);
}
$feedItems = FeedItem::getRecentFeedItemsByFeed($feedIds, 10);
}
?>
<div class="contents_in_item1">
<div class="more_wrap">
<div class="title"><?php echo _t('최근 글');?></div>
<div class="more">
<a href="<?php echo $service['path'];?>/admin/blog/entrylist"><?php echo _t('더보기..');?></a>
</div>
<div class="clear"></div>
</div>
示例3: array
<div class="wrap">
<?php
$headers = array(array('title'=>_t('번호'),'class'=>'member_number','width'=>'60px'),
array('title'=>_t('가입일'),'class'=>'member_created','width'=>'130px'),
array('title'=>_t('아이디'),'class'=>'member_id','width'=>'100px'),
array('title'=>_t('별명'),'class'=>'member_nickname','width'=>'140px'),
array('title'=>_t('등록된 블로그'),'class'=>'member_blogs','width'=>'auto'),
array('title'=>_t('수집한 글수'),'class'=>'member_count','width'=>'100px'));
$datas = array();
if(count($members)>0) {
foreach($members as $member) {
list($feeds, $totalFeeds) = Feed::getFeedsByOwner($member['id'], 'all');
$totalFeedItems = 0;
if($totalFeeds>0) {
foreach($feeds as $feed) {
$totalFeedItems += $feed['feedCount'];
}
}
$data = array();
$data['class'] = ($read==$member['id']?' list_item_select':'');
$data['datas'] = array();
// 멤버 번호
array_push($data['datas'], array('class'=>'member_number','data'=> $member['id'] ));