本文整理汇总了PHP中Feed::gets方法的典型用法代码示例。如果您正苦于以下问题:PHP Feed::gets方法的具体用法?PHP Feed::gets怎么用?PHP Feed::gets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feed
的用法示例。
在下文中一共展示了Feed::gets方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: empty
if($media = Media::getMedia($item['thumbnailId'])) {
$item['thumbnail'] = $media['thumbnail'];
}
$src_thumbnail = $skin->cutSkinTag('cond_thumbnail');
$thumbnailFile = $event->on('Text.postThumbnail', Media::getMediaFile($item['thumbnail']));
if(!empty($thumbnailFile)) {
$s_thumbnail = (!Validator::is_empty($thumbnailFile)) ? $skin->parseTag('post_thumbnail', $thumbnailFile, $src_thumbnail) : '';
$sp_posts = $skin->dressOn('cond_thumbnail', $src_thumbnail, $s_thumbnail, $src_post_rep);
$sp_posts = $skin->parseTag('post_thumbnail_exist', 'post_thumbnail_exist', $sp_posts);
} else {
$sp_posts = $skin->dressOn('cond_thumbnail', $src_thumbnail, '', $src_post_rep);
$sp_posts = $skin->parseTag('post_thumbnail_exist', 'post_thumbnail_nonexistence', $sp_posts);
}
list($feedId, $feedOwner, $feedTitle,$feedBlogURL, $logoFile) = Feed::gets($item['feed'],'id,owner,title,blogURL,logo');
$src_logo = $skin->cutSkinTag('cond_logo');
$logoFile = $event->on('Text.postLogo', (!file_exists(ROOT . '/cache/feedlogo/' . $logoFile) || empty($logoFile)) ? '' : $service['path']. '/cache/feedlogo/'.$logoFile);
if(!empty($logoFile)) {
$s_logo = (!Validator::is_empty($logoFile)) ? $skin->parseTag('post_logo', $logoFile, $src_logo) : '';
$sp_posts = $skin->dressOn('cond_logo', $src_logo, $s_logo, $sp_posts);
$sp_posts = $skin->parseTag('post_logo_exist', 'post_logo_exist', $sp_posts);
} else {
$sp_posts = $skin->dressOn('cond_logo', $src_logo, '', $sp_posts);
$sp_posts = $skin->parseTag('post_logo_exist', 'post_logo_nonexistence', $sp_posts);
}
$sp_posts = $skin->parseTag('post_position', ($index==1?'firstItem':($index==$lastIndex?'lastItem':'')), $sp_posts);
示例2: getAuthor
function getAuthor($item, $feedId, $feedItemId = null) {
$author = array();
$autoUpdate = array();
$author['result'] = $item['author'];
list($autoUpdate['feed'], $author['feed']) = Feed::gets($feedId, 'autoUpdate,author');
$autoUpdate['feed'] = Validator::getBool($autoUpdate['feed']);
if (!$autoUpdate['feed'] && !Validator::is_empty($author['feed']))
$author['result'] = $author['feed'];
if (isset($feedItemId) || ($feedItemId !== false)) { // update
requireComponent('Bloglounge.Data.FeedItems');
list($autoUpdate['item'], $author['item']) = FeedItem::gets($feedItemId, 'autoUpdate,author');
$autoUpdate['item'] = Validator::getBool($autoUpdate['item']);
if (!$autoUpdate['item'] && !Validator::is_empty($author['item']))
$author['result'] = $author['item'];
}
return $author['result'];
}
示例3: if
$src_condMessage = $event->on('Text.searchAll', $src_condMessage);
$condMessage = true;
}
else if ($searchType=='tag') { // 태그검색
$src_condSearchTag = $skin->cutSkinTag('cond_search_tag');
$s_condSearchTag = $skin->parseTag('search_tag', $searchKeyword, $src_condSearchTag);
$s_condSearchTag = $skin->parseTag('search_count', $totalFeedItems, $s_condSearchTag);
$src_condMessage = $skin->dressOn('cond_search_tag', $src_condSearchTag, $s_condSearchTag, $src_condMessage);
$src_condMessage = $event->on('Text.searchTag', $src_condMessage);
$condMessage = true;
} else if ($searchType=='blogURL') { // 블로그주소
$src_condSearchBlogURL = $skin->cutSkinTag('cond_search_blogurl');
$searchblog = array();
list($searchblog['title'], $searchblog['description'], $searchblog['logo'], $searchblog['feedCount']) = Feed::gets($searchExtraValue, 'title, description, logo, feedCount');
$sp_blogurl = $skin->parseTag('search_blogurl', $searchKeyword, $src_condSearchBlogURL);
$sp_blogurl = $skin->parseTag('search_blogtitle', $searchblog['title'], $sp_blogurl);
$sp_blogurl = $skin->parseTag('search_blogdescription', $searchblog['description'], $sp_blogurl);
$src_sblogo = $skin->cutSkinTag('cond_search_bloglogo');
if (!empty($searchblog['logo'])) {
$sp_blogurl = $skin->parseTag('search_bloglogo', $service['path'].'/cache/feedlogo/'.$searchblog['logo'], $sp_blogurl);
$sp_blogurl = str_replace('<s_cond_search_bloglogo>', '', $sp_blogurl);
$sp_blogurl = str_replace('</s_cond_search_bloglogo>', '', $sp_blogurl);
} else {
$sp_blogurl = $skin->dressOn('cond_search_bloglogo', $src_sblogo, '', $sp_blogurl);
}
$sp_blogurl = $skin->parseTag('search_blogcount', $searchblog['feedCount'], $sp_blogurl);
$src_condMessage = $skin->dressOn('cond_search_blogurl', $src_condSearchBlogURL, $sp_blogurl, $src_condMessage);
$src_condMessage = $event->on('Text.searchBlogURL', $src_condMessage);