本文整理匯總了PHP中common_node::getRecipeNodeHomepage方法的典型用法代碼示例。如果您正苦於以下問題:PHP common_node::getRecipeNodeHomepage方法的具體用法?PHP common_node::getRecipeNodeHomepage怎麽用?PHP common_node::getRecipeNodeHomepage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類common_node
的用法示例。
在下文中一共展示了common_node::getRecipeNodeHomepage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: mainAction
/**
* main action
*/
public function mainAction()
{
if ($this->GET['to']) {
header("HTTP/1.1 301 Moved Permanently");
onxshopGoTo($this->GET['to']);
} else {
if (is_numeric($this->GET['product_id'])) {
header("HTTP/1.1 301 Moved Permanently");
require_once 'models/common/common_node.php';
$Node = new common_node();
$product_homepage = $Node->getProductNodeHomepage($this->GET['product_id']);
if (is_array($product_homepage)) {
onxshopGoTo("/page/{$product_homepage['id']}");
} else {
msg("Product no longer available");
onxshopGoTo("/");
}
} else {
if (is_numeric($this->GET['recipe_id'])) {
header("HTTP/1.1 301 Moved Permanently");
require_once 'models/common/common_node.php';
$Node = new common_node();
$recipe_homepage = $Node->getRecipeNodeHomepage($this->GET['recipe_id']);
if (is_array($recipe_homepage)) {
onxshopGoTo("/page/{$recipe_homepage['id']}");
} else {
msg("Recipe no longer available");
onxshopGoTo("/");
}
} else {
if (is_numeric($this->GET['store_id'])) {
header("HTTP/1.1 301 Moved Permanently");
require_once 'models/ecommerce/ecommerce_store.php';
$Store = new ecommerce_store();
$store_homepage = $Store->getStoreHomepage($this->GET['store_id']);
if (is_array($store_homepage)) {
onxshopGoTo("/page/{$store_homepage['id']}");
} else {
msg("Store no longer available");
onxshopGoTo("/");
}
}
}
}
}
return true;
}