本文整理汇总了PHP中Browse::get_content_div方法的典型用法代码示例。如果您正苦于以下问题:PHP Browse::get_content_div方法的具体用法?PHP Browse::get_content_div怎么用?PHP Browse::get_content_div使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browse
的用法示例。
在下文中一共展示了Browse::get_content_div方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$browse->set_catalog($_SESSION['catalog']);
}
if ($_REQUEST['sort']) {
// Set the new sort value
$browse->set_sort($_REQUEST['sort']);
}
if ($_REQUEST['catalog_key'] || $_SESSION['catalog'] != 0) {
$browse->set_filter('catalog', $_REQUEST['catalog_key']);
$_SESSION['catalog'] = $_REQUEST['catalog_key'];
} elseif ($_REQUEST['catalog_key'] == 0) {
$browse->set_filter('catalog', null);
unset($_SESSION['catalog']);
}
ob_start();
$browse->show_objects(null, $argument);
$results[$browse->get_content_div()] = ob_get_clean();
break;
case 'set_sort':
if ($_REQUEST['sort']) {
$browse->set_sort($_REQUEST['sort']);
}
if (!$browse->get_use_pages()) {
$browse->set_start(0);
}
ob_start();
$browse->show_objects(null, $argument);
$results[$browse->get_content_div()] = ob_get_clean();
break;
case 'toggle_tag':
$type = $_SESSION['tagcloud_type'] ? $_SESSION['tagcloud_type'] : 'song';
$browse->set_type($type);
示例2: xoutput_from_array
$_SESSION['iframe']['target'] = AmpConfig::get('web_path') . '/stream.php?action=democratic&democratic_id=' . scrub_out($_REQUEST['democratic_id']);
$results['rfc3514'] = '<script type="text/javascript">' . Core::get_reloadutil() . '("' . $_SESSION['iframe']['target'] . '")</script>';
break;
case 'clear_playlist':
if (!Access::check('interface', '100')) {
echo xoutput_from_array(array('rfc3514' => '0x1'));
exit;
}
$democratic = new Democratic($_REQUEST['democratic_id']);
$democratic->set_parent();
$democratic->clear();
$show_browse = true;
break;
default:
$results['rfc3514'] = '0x1';
break;
}
// switch on action;
if ($show_browse) {
ob_start();
$object_ids = $democratic->get_items();
$browse = new Browse();
$browse->set_type('democratic');
$browse->set_static_content(false);
$browse->show_objects($object_ids);
$browse->store();
$results[$browse->get_content_div()] = ob_get_contents();
ob_end_clean();
}
// We always do this
echo xoutput_from_array($results);