src/bbn/appui/menus.php
public function set(string $id, array $cfg): bool
  {
    if (
      \bbn\str::is_uid($id) &&
      ($id_menu = $this->get_id_menu($id)) &&
      $this->pref->update_bit($id, $cfg)
    ){
      $this->delete_cache($id_menu);
      return true;
    }
    return false;
  }
public function set(string $id, array $cfg): bool
  {
    if (
      \bbn\str::is_uid($id) &&
      ($id_menu = $this->get_id_menu($id)) &&
      $this->pref->update_bit($id, $cfg)
    ){
      $this->delete_cache($id_menu);
      return true;
    }
    return false;
  }
public function set ( string $ id , array $ cfg ) : bool { if ( \ bbn \ str :: is_uid ( $ id ) && ( $ id_menu = $ this -> get_id_menu ( $ id ) ) && $ this -> pref -> update_bit ( $ id , $ cfg ) ) { $ this -> delete_cache ( $ id_menu ) ; return true ; } return false ; }
Updates a menu item and deletes the menu cache

@param string $id
@param array $cfg
@return bool
Updates a menu item and deletes the menu cache