本文整理匯總了PHP中Viewer::get_channel_items方法的典型用法代碼示例。如果您正苦於以下問題:PHP Viewer::get_channel_items方法的具體用法?PHP Viewer::get_channel_items怎麽用?PHP Viewer::get_channel_items使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Viewer
的用法示例。
在下文中一共展示了Viewer::get_channel_items方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: count
}
} else {
$intStart = $intPage * $intStep - $intStep;
$intStop = $intStart + $intStep;
$to_next = false;
$to_back = true;
if ($intMaxPages > $intPage) {
if ($intStop < $intChannelItems) {
$to_next = true;
}
}
}
$but_to_back = $to_back ? "<a href='/rss_admin/channel.php?cid={$intChannelID}&p=" . ($intPage - 1) . "'>< Back</a> " : null;
$but_to_next = $to_next ? "<a href='/rss_admin/channel.php?cid={$intChannelID}&p=" . ($intPage + 1) . "'>Next ></a>" : null;
//exit;
$chi = $cDataViewer->get_channel_items($intChannelID, $intStart, $intStep);
$chin = count($chi['items']);
$return = null;
$channel_id = $chi['channel']['channel_id'];
$url = $chi['channel']['url'];
$link = $chi['channel']['chiLink'];
//$link = $chi[$c]['info']['chiLink'];
$title = $chi['channel']['chiTitle'] != "" ? $chi['channel']['chiTitle'] : "unknown";
//print_r($chi);
$strReturnChannelInfo = <<<NN
<div>
\t<b>{$title}</b>
</div>
<div>
\t{$link}
</div>