private function try_execute()
 {
     $this->load_env();
     $this->object_id = AppContext::get_request()->get_getint('menu_config_id');
     $menu_config = MenuConfigurationDAO::instance()->find_by_id($this->object_id);
     $this->view->put_all(array('NAME' => $menu_config->get_name(), 'MATCH_REGEX' => $menu_config->get_match_regex(), 'U_CONFIGURE' => MenuUrlBuilder::menu_configuration_configure($menu_config->get_id())->rel(), 'U_LIST' => MenuUrlBuilder::menu_configuration_list()->rel()));
 }
 public function __construct($view)
 {
     global $LANG;
     parent::__construct($view);
     $view->add_lang($LANG);
     $this->set_title($LANG['menus_management']);
     $this->add_link($LANG['menu_configurations'], MenuUrlBuilder::menu_configuration_list()->relative());
     $this->add_link($LANG['menus'], MenuUrlBuilder::menu_list()->relative());
 }
 public function execute(HTTPRequestCustom $request)
 {
     global $LANG;
     $this->load_env();
     $menu_configurations = MenuConfigurationDAO::instance()->find_by_criteria('WHERE id!=:default_config_id ORDER BY priority DESC;', array('default_config_id' => 1));
     foreach ($menu_configurations as $menu_config) {
         $this->view->assign_block_vars('menu_configuration', array('NAME' => $menu_config->get_name(), 'MATCH_REGEX' => $menu_config->get_match_regex(), 'U_EDIT' => MenuUrlBuilder::menu_configuration_edit($menu_config->get_id())->rel(), 'U_CONFIGURE' => MenuUrlBuilder::menu_configuration_configure($menu_config->get_id())->rel()));
     }
     $default_menu_config = MenuConfigurationDAO::instance()->find_by_id(1);
     $this->view->put_all(array('U_DEFAULT_MENU_CONFIG_CONFIGURE' => MenuUrlBuilder::menu_configuration_configure($default_menu_config->get_id())->rel()));
     return $this->response;
 }