<?php

/**
 * Generated: 2014-03-24 15:01:35
 * @author Rtn_Module_Tool
 */
class Conference_Module_Menu extends Eppe_Module_MenuAbstract implements Eppe_Module_MenuInterface {

	public function setNavigation() {

		$groupsEnabled = Conference_Module_Module::getInstance()->groupsEnabled();

		$this->navigation = array(
			    array(
				'label' => __('Konferencje'),
				'module' => 'Conference',
				'controller' => 'admin_index',
				'action' => 'index',
				'pages' => $groupsEnabled ? [
				    [
					'label' => __('Kategorie'),
					'module' => 'Conference',
					'controller' => 'admin_group',
					'action' => 'index',
				    ], [
					'label' => __('Dodanie kategorii'),
					'module' => 'Conference',
					'controller' => 'admin_group',
					'action' => 'add',
					'visible' => false
				    ], [
					'label' => __('Edycja kategorii'),
					'module' => 'Conference',
					'controller' => 'admin_group',
					'action' => 'edit',
					'visible' => false
				    ], [
					'label' => __('Lista'),
					'module' => 'Conference',
					'controller' => 'admin_index',
					'action' => 'index',
				    ], [
					'label' => __('Dodanie ogłoszenia'),
					'module' => 'Conference',
					'controller' => 'admin_index',
					'action' => 'add',
					'visible' => false
				    ], [
					'label' => __('Edycja ogłoszenia'),
					'module' => 'Conference',
					'controller' => 'admin_index',
					'action' => 'edit',
					'visible' => false
				    ]
					] : []
			    )
		);
	}

}
