本文整理汇总了PHP中Catalog::process_action方法的典型用法代码示例。如果您正苦于以下问题:PHP Catalog::process_action方法的具体用法?PHP Catalog::process_action怎么用?PHP Catalog::process_action使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Catalog
的用法示例。
在下文中一共展示了Catalog::process_action方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: catalog_worker
function catalog_worker($action, $catalogs = null, $options = null)
{
if (AmpConfig::get('ajax_load')) {
$sse_url = AmpConfig::get('web_path') . "/server/sse.server.php?worker=catalog&action=" . $action . "&catalogs=" . urlencode(serialize($catalogs));
if ($options) {
$sse_url .= "&options=" . urlencode(serialize($_POST));
}
sse_worker($sse_url);
} else {
Catalog::process_action($action, $catalogs, $options);
}
}
示例2: scrub_in
} else {
$options = null;
}
if (isset($_REQUEST['catalogs'])) {
$catalogs = scrub_in(json_decode(urldecode($_REQUEST['catalogs']), true));
} else {
$catalogs = null;
}
// Free the session write lock
// Warning: Do not change any session variable after this call
session_write_close();
switch ($worker) {
case 'catalog':
if (defined('SSE_OUTPUT')) {
echo "data: toggleVisible('ajax-loading')\n\n";
ob_flush();
flush();
}
Catalog::process_action($_REQUEST['action'], $catalogs, $options);
if (defined('SSE_OUTPUT')) {
echo "data: toggleVisible('ajax-loading')\n\n";
ob_flush();
flush();
echo "data: stop_sse_worker()\n\n";
ob_flush();
flush();
} else {
AmpError::display('general');
}
break;
}