src/bbn/appui/menus.php
public function set_text(string $id, string $text): bool
  {
    if ( \bbn\str::is_uid($id) && $this->pref->set_text($id, $text) ){
      $this->delete_cache($id);
      return true;
    }
    return false;
  }
public function set_text(string $id, string $text): bool
  {
    if ( \bbn\str::is_uid($id) && $this->pref->set_text($id, $text) ){
      $this->delete_cache($id);
      return true;
    }
    return false;
  }
public function set_text ( string $ id , string $ text ) : bool { if ( \ bbn \ str :: is_uid ( $ id ) && $ this -> pref -> set_text ( $ id , $ text ) ) { $ this -> delete_cache ( $ id ) ; return true ; } return false ; }
Sets the menu's text and deletes its chache

@param string $id The menu's ID
@param array $text The new text tp set
@return bool
Sets the menu s text and deletes its chache