}
public static function SetObject($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetArray($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetBoolean($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function Set($key, $var, $expire = 86400) {
App::debugbarLog('debug', "Cache set: $key");
if ($i = static::getInstance()) {
$var = static::beforeSet($var);
return $expire > 0?
$i->setEx($key, $expire, $var) :
$i->set($key, $var);
}
return null;
}
public static function Exists(...$key):?bool {
if ($i = static::getInstance()) {
return $i->exists($key);
}
return null;
}
public static function Expire($key, $ttl) {
if ($i = static::getInstance()) {
return $i->expire($key, $ttl);
}
return false;
}
/**
"MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error."
}
public static function SetObject($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetArray($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetBoolean($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function Set($key, $var, $expire = 86400) {
App::debugbarLog('debug', "Cache set: $key");
if ($i = static::getInstance()) {
$var = static::beforeSet($var);
return $expire > 0?
$i->setEx($key, $expire, $var) :
$i->set($key, $var);
}
return null;
}
public static function Exists(...$key):?bool {
if ($i = static::getInstance()) {
return $i->exists($key);
}
return null;
}
public static function Expire($key, $ttl) {
if ($i = static::getInstance()) {
return $i->expire($key, $ttl);
}
return false;
}
/**
"6981_8963_107625_2_schema"
86400
""" <script type="application/ld+json">{\n "@context": "http://schema.org",\n "@type": "Menu",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu",\n "mainEntityOfPage": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu",\n "inLanguage": "English",\n "name": "Main Menu",\n "hasMenuSection": [\n {\n "@type": "MenuSection",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes",\n "name": "Dinner Asian Dishes",\n "description": "Dinner is served with steamed rice",\n "hasMenuItem": [\n {\n "@type": "MenuItem",\n "name": "Sesame Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Orange Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/orange-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/kung-pao-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Jalapeno Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/jalapeno-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Broccoli Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/broccoli-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Spicy Onion Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/spicy-onion-chicken",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Garlic Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/garlic-chicken",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Cashew Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/cashew-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sweet & Sour Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-yaki-soba-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Chicken Drunken Noodles",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-drunken-noodles",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Vegetable Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/vegetable-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Chicken Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Beef Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/beef-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/shrimp-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "House Special Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/house-special-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/garlic-beef",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sriracha Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sriracha-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Jalapeno Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/jalapeno-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Broccoli Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/broccoli-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Beef & Vegetable",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-yaki-udon-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Pepper Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/pepper-steak-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sesame Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sesame Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/kung-pao-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Salt & Pepper Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/salt-pepper-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Cashew Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/cashew-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp & Vegetable",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/vegetable-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp Drunken Noodles",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/shrimp-drunken-noodles",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sweet & Sour Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sweet-sour-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Happy Family",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/happy-family-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "13.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n }\n ]\n }\n ]\n }</script> """
if (count($prices) > 1 || $p->getDisplayName() != $i->getDisplayName()) {
$priceJson['eligibleQuantity'] = [
'@type' => 'QuantitativeValue',
'name' => $p->getDisplayName()
];
}
$itemJson['offers'][] = $priceJson;
}
}
$categoryJson['hasMenuItem'][] = $itemJson;
}
}
}
$json['hasMenuSection'][] = $categoryJson;
}
}
$schemaScript = '<script type="application/ld+json">'.json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).'</script>';
Cache::Set($cacheKey, $schemaScript);
echo $schemaScript;
break;
}
};
$printSchema();
"6981_8963_107625_2_schema"
""" <script type="application/ld+json">{\n "@context": "http://schema.org",\n "@type": "Menu",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu",\n "mainEntityOfPage": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu",\n "inLanguage": "English",\n "name": "Main Menu",\n "hasMenuSection": [\n {\n "@type": "MenuSection",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes",\n "name": "Dinner Asian Dishes",\n "description": "Dinner is served with steamed rice",\n "hasMenuItem": [\n {\n "@type": "MenuItem",\n "name": "Sesame Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Orange Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/orange-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/kung-pao-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Jalapeno Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/jalapeno-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Broccoli Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/broccoli-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Spicy Onion Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/spicy-onion-chicken",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Garlic Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/garlic-chicken",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Cashew Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/cashew-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sweet & Sour Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-yaki-soba-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Chicken Drunken Noodles",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-drunken-noodles",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Vegetable Chicken",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/vegetable-chicken-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Chicken Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Beef Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/beef-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "10.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/shrimp-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "House Special Fried Rice",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/house-special-fried-rice",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/garlic-beef",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sriracha Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sriracha-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Jalapeno Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/jalapeno-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Broccoli Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/broccoli-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Beef & Vegetable",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/chicken-yaki-udon-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Pepper Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/pepper-steak-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sesame Beef",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-beef-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "11.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sesame Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sesame-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Kung Pao Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/kung-pao-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Salt & Pepper Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/salt-pepper-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Basil Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/basil-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Cashew Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/cashew-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp & Vegetable",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/vegetable-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Shrimp Drunken Noodles",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/shrimp-drunken-noodles",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Sweet & Sour Shrimp",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/sweet-sour-shrimp-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "12.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n },\n {\n "@type": "MenuItem",\n "name": "Happy Family",\n "url": "https://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes/happy-family-1",\n "offers": [\n {\n "@type": "Offer",\n "price": "13.95",\n "priceCurrency": "USD",\n "eligibleQuantity": {\n "@type": "QuantitativeValue",\n "name": "Dinner"\n }\n }\n ]\n }\n ]\n }\n ]\n }</script> """
}
$itemJson['offers'][] = $priceJson;
}
}
$categoryJson['hasMenuItem'][] = $itemJson;
}
}
}
$json['hasMenuSection'][] = $categoryJson;
}
}
$schemaScript = '<script type="application/ld+json">'.json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).'</script>';
Cache::Set($cacheKey, $schemaScript);
echo $schemaScript;
break;
}
};
$printSchema();
<? } elseif (IS_EMBEDDED_INLINE) { ?>
const overlay = jQuery('<div id="overlay" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color: #000;opacity: 0.9;z-index: 10000;"><div style="margin-top:10%;height:50px;font-weight:bold;font-size:150%;text-align:center;">Cookies are required for online ordering. <span style="color: #ffffff;">Click here to allow cookies</span>.<br><a href="<?=$account->getDomainUrl()?>" target="_blank" title="Opens in new tab" id="notworking">Not working? Click here to open ordering in a new window.</a></div></div>');
overlay.appendTo(document.body).on('click', function (event) {
if (event.target.id != 'notworking') {
console.log('overlay clicked')
window.open("<?=$account->getDomainUrl()?>/setcookie", '_blank', 'width=20,height=20')
}
});
<? } ?>
} else {
Cookies.remove('test')
}
}
}
});
</script>
<? } ?>
<? include_once(CORE_PATH.'templates3.0/customer/schema.php');
include_once(CORE_PATH.'templates3.0/customer/google_analytics.php');
if (isset($account) && $account->getFacebookPixelId()) { ?>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '<?=$account->getFacebookPixelId()?>');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=<?=$account->getFacebookPixelId()?>&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->
<?
"/home/deploy/EHungry-11-boyan/Web/templates3.0/customer/schema.php"
}
if (!isset($cart) || !is_object($cart)) {
$GLOBALS['cart'] = \Cart::getCurrent();
}
//unset callback data in the event someone didn't hit the callback validation page
if (!in_array($_REQUEST['form'], ['checkout', 'nosuchpage', 'validatecallback', 'viewdeliveryzone'])) {
//TODO: probably need to add one more form here that is called ajax, callback seems to reset when it shouldnt
unset($_SESSION['validation_data']);
}
$locs = $account->getActiveRestaurants('position');
$tab = MainNavigationTab::getAllForAccount($account->getId());
include_once(CORE_PATH.'lib/helpers/customer3.0.php');
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('header');
include_once(getLayoutPartPath('header'));
App::debugbarTime('header');
}
App::debugbarTime("view '{$_REQUEST['form']}'");
$path = CORE_PATH.'view' . ($_REQUEST['_VERSION'] == 4 ? 4 : 3) . '.0/customer/'.$_REQUEST['form'].'.php';
if (is_readable($path)) {
include_once($path);
}
App::debugbarTime("view '{$_REQUEST['form']}'");
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('footer');
include_once(getLayoutPartPath('footer'));
App::debugbarTime('footer');
}
function getLayoutPartPath($part) {
if (isset($_REQUEST['_CORDOVA_APP']) && $_REQUEST['_VERSION'] != 4) {
$cart = Cart::getCurrent();
"/home/deploy/EHungry-11-boyan/Web/templates3.0/customer/header.php"
App::startTime();
ErrorHandlers::register();
// Global.php is the core setup file for the application
App::debugbarTime('Global.php');
require(dirname(__DIR__) . '/PHP/Global.php');
App::debugbarTime('Global.php');
/** @var string $controller The main controller - defined at /PHP/Global.php */
App::debugbarTime('Sentry - controller');
ErrorHandlers::sentryInit($controller); //doesn't always do much - not every controller has a Sentry project
App::debugbarTime('Sentry - controller');
App::debugbarTime("controller: $controller");
apache_note('AppController', $controller);
if (file_exists(CORE_PATH."lib/helpers/$controller.php")) {
require CORE_PATH."lib/helpers/$controller.php";
}
require CORE_PATH."controllers/$controller.php";
App::debugbarTime("controller: $controller");
"/home/deploy/EHungry-11-boyan/Web/controllers/customer.php"
| Key | Value |
| aid | "restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| Key | Value |
| PHPSESSID | "2nsadk9tcl9v6fm7gjt0av597e"
|
| Key | Value |
| loc | "en_US"
|
| customer_account_id | 48816
|
| cart | Cart {}
|
| restaurant_id | 6981
|
| app_banner_shown | true
|
| menu_id | 8963
|
| Key | Value |
| UNIQUE_ID | "adNq34HQRxhcgkWsPmc2IQAAAA0"
|
| SCRIPT_URL | "/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| SCRIPT_URI | "http://www.springroll.com.11.boyan.ehungry.net/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| HTTP_HOST | "www.springroll.com.11.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.144"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.144"
|
| HTTP_X_CONFKEY | "Main_Domain:6462"
|
| HTTP_SCHEME | "https"
|
| HTTP_EHENV | "TODO"
|
| HTTP_CONNECTION | "close"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_COOKIE | "PHPSESSID=2nsadk9tcl9v6fm7gjt0av597e"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache/2.4.66 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
| SERVER_NAME | "www.springroll.com.11.boyan.ehungry.net"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_PORT | "80"
|
| REMOTE_ADDR | "127.0.0.1"
|
| DOCUMENT_ROOT | "/home/deploy/EHungry-11-boyan/Web"
|
| REQUEST_SCHEME | "http"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-11-boyan/Web"
|
| SERVER_ADMIN | "root@localhost"
|
| SCRIPT_FILENAME | "/home/deploy/EHungry-11-boyan/Web/index.php"
|
| REMOTE_PORT | "35962"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| REQUEST_URI | "/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| SCRIPT_NAME | "/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| PHP_SELF | "/restaurant/sunrisesushibrighton/order/main-menu/dinner-asian-dishes"
|
| REQUEST_TIME_FLOAT | 1775463135.029
|
| REQUEST_TIME | 1775463135
|