Your IP : 216.73.217.64


Current Path : /home3/gp97/capisondages.97gp.net/application/libraries/MenuObjects/
Upload File :
Current File : //home3/gp97/capisondages.97gp.net/application/libraries/MenuObjects/Menu.php

<?php

namespace ls\menu;

class Menu implements MenuInterface
{
  protected $isDropDown = false;
  protected $label = "Missing label";
  protected $href = "#";
  protected $menuItems = array();

  /**
   * @param array $options - Options for either dropdown menu or plain link
   * @return ExtraMenu
   */
  public function __construct($options)
  {
      if (isset($options['isDropDown']))
      {
          $this->isDropDown = $options['isDropDown'];
      }

      if (isset($options['label']))
      {
          $this->label = $options['label'];
      }

      if (isset($options['href']))
      {
          $this->href = $options['href'];
      }

      if (isset($options['menuItems']))
      {
          $this->menuItems = $options['menuItems'];
      }
  }

  public function isDropDown() { return $this->isDropDown; }
  public function getLabel() { return $this->label; }
  public function getHref() { return $this->href; }
  public function getMenuItems() { return $this->menuItems; }
}