本文整理汇总了PHP中FeedItem::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP FeedItem::getAll方法的具体用法?PHP FeedItem::getAll怎么用?PHP FeedItem::getAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeedItem
的用法示例。
在下文中一共展示了FeedItem::getAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _t
$value = $_POST['value'];
if(empty($id) || empty($value) || !is_numeric($value)) {
$response['error'] = -1;
$response['message'] = _t('잘못된 접근입니다.');
} else {
if (!isLoggedIn()) {
$response['error'] = 1;
$response['message'] = _t('로그인 한 사람만 이 기능을 사용할 수 있습니다.');
} else {
$ids = explode(',', $id);
foreach($ids as $id) {
if(empty($id)) continue;
$feedItem = FeedItem::getAll($id);
$feed = Feed::getAll($feedItem['feed']);
if(isAdmin() || $feed['owner'] == getLoggedId()) {
Category::setItemCategory($id, $value);
Category::rebuildCount($value);
Category::rebuildCount($feedItem['category']);
} else {
$response['error'] = -1;
$response['message'] = _t('잘못된 접근입니다.');
break;
}
}
}
}
示例2: _t
<option value="title+description"<?php echo $type=='title+description'?' selected="selected"':'';?>><?php echo _t('제목+내용');?></option>
<option value="title"<?php echo $type=='title'?' selected="selected"':'';?>><?php echo _t('제목');?></option>
<option value="description"<?php echo $type=='description'?' selected="selected"':'';?>><?php echo _t('내용');?></option>
<option value="tag"<?php echo $type=='tag'?' selected="selected"':'';?>><?php echo _t('태그');?></option>
<option value="blogURL"<?php echo $type=='blogURL'?' selected="selected"':'';?>><?php echo _t('블로그주소');?></option>
</select>
<input type="text" class="input faderInput" name="keyword" value="<?php echo $keyword;?>"/> <span class="searchbutton"><input type="submit" value="<?php echo _t('검색');?>" align="bottom" /></span><?php if(!empty($keyword)) {?><a href="<?php echo $service['path'];?>/admin/blog/entrylist" class="searchbutton"><span><?php echo _t('검색취소');?></span></a><?php } ?>
</form>
</div>
<div class="clear"></div>
</div>
<?php
requireComponent('LZ.PHP.Media');
if(!empty($read)) {
$readFeedItem = FeedItem::getAll($read);
if(!isset($readFeedItem['category'])) {
$readFeedItem['category'] = 0;
}
if($readFeedItem && ($readFeedItem['visibility']!='d')) {
$date = Func::dateToString($readFeedItem['written']);
$medias = Media::getMediasByFeedItemId($readFeedItem['id']);
$desc = str_replace(' ','',func::stripHTML($readFeedItem['description']));
if(empty($desc)) {
$desc = '<span class="empty">'._t('내용이 비어있거나 HTML로만 작성되어 있습니다.').'</span>';
}
?>
<div class="wrap">
<div class="read_item read_item1">