File: D:/HostingSpaces/SBogers14/coeveringmatrijzen.nl/app/Coevering/Menus/MenuService.php
<?php
namespace Coevering\Menus;
class MenuService
{
/**
* @var Menu
*/
private $menu;
/**
* @param Menu $menu
*/
public function __construct(Menu $menu){
$this->menu = $menu;
}
public function get()
{
return $this;
}
public function getRouteByController($controller)
{
return $this->menu->getRouteByController($controller);
}
/**
* Get main menu
*
* @return string
*/
public function getMain()
{
$this->menu->add('home','HomeController@index');
$this->menu->add('company','CompanyController@index');
$this->menu->add('services','ServicesController@projectDevelopment');
$this->menu->add('products','ProductsController@general');
$this->menu->add('machinery','MachineryController@milling');
$this->menu->add('gallery','GalleryController@preProductionMolds');
$this->menu->add('contact','ContactController@index');
return $this->menu->createMain();
}
/**
* Get services menu
*
* @return string
*/
public function getServices()
{
$this->menu->add('projectDevelopment','ServicesController@projectDevelopment');
$this->menu->add('projectManagement','ServicesController@projectManagement');
$this->menu->add('moldDesign','ServicesController@moldDesign');
$this->menu->add('production','ServicesController@production');
$this->menu->add('threeDimensionalLaserCutters','ServicesController@threeDimensionalLaserCutters');
$this->menu->add('polish','ServicesController@polish');
$this->menu->add('repairAndMaintenance','ServicesController@repairAndMaintenance');
return $this->menu->createSub();
}
/**
* Get products menu
*
* @return string
*/
public function getProducts()
{
$this->menu->add('general','ProductsController@general');
$this->menu->add('preProductionMolds','ProductsController@preProductionMolds');
$this->menu->add('productionMolds','ProductsController@productionMolds');
$this->menu->add('stackMolds','ProductsController@stackMolds');
$this->menu->add('twoKMolds','ProductsController@twoKMolds');
$this->menu->add('precisionMechanicalParts','ProductsController@precisionMechanicalParts');
return $this->menu->createSub();
}
/**
* Get machinery menu
*
* @return string
*/
public function getMachinery()
{
$this->menu->add('milling','MachineryController@milling');
$this->menu->add('lathing','MachineryController@lathing');
$this->menu->add('deepHoleDrilling','MachineryController@deepHoleDrilling');
$this->menu->add('grinding','MachineryController@grinding');
$this->menu->add('zincSparkErosion','MachineryController@zincSparkErosion');
$this->menu->add('wireSparkErosion','MachineryController@wireSparkErosion');
$this->menu->add('laserMilling','MachineryController@laserMilling');
$this->menu->add('cadCam','MachineryController@cadCam');
$this->menu->add('other','MachineryController@other');
return $this->menu->createSub();
}
/**
* Get gallery menu
*
* @return string
*/
public function getGallery()
{
$this->menu->add('preProductionMolds','GalleryController@preProductionMolds');
$this->menu->add('productionMolds','GalleryController@productionMolds');
$this->menu->add('stackMolds','GalleryController@stackMolds');
$this->menu->add('twoKMolds','GalleryController@twoKMolds');
$this->menu->add('precisionMechanicalParts','GalleryController@precisionMechanicalParts');
$this->menu->add('machines','GalleryController@machines');
return $this->menu->createSub();
}
}