src/bbn/appui/menus.php
public function remove(string $id){
    if ( \bbn\str::is_uid($id) ){
      if ( $id_menu = $this->get_id_menu($id) ){
        if ( $this->pref->delete_bit($id) ){
          $this->delete_cache($id_menu);
          return true;
        }
      }
      else if ( $this->pref->delete($id) ){
        $this->options->delete_cache($this->from_path('menus'));
        return true;
      }
    }
    return false;
  }
public function remove(string $id){
    if ( \bbn\str::is_uid($id) ){
      if ( $id_menu = $this->get_id_menu($id) ){
        if ( $this->pref->delete_bit($id) ){
          $this->delete_cache($id_menu);
          return true;
        }
      }
      else if ( $this->pref->delete($id) ){
        $this->options->delete_cache($this->from_path('menus'));
        return true;
      }
    }
    return false;
  }
public function remove ( string $ id ) { if ( \ bbn \ str :: is_uid ( $ id ) ) { if ( $ id_menu = $ this -> get_id_menu ( $ id ) ) { if ( $ this -> pref -> delete_bit ( $ id ) ) { $ this -> delete_cache ( $ id_menu ) ; return true ; } } else if ( $ this -> pref -> delete ( $ id ) ) { $ this -> options -> delete_cache ( $ this -> from_path ( 'menus' ) ) ; return true ; } } return false ; }
Removes menu and deletes parent cache
@param $id
@return int|boolean
Removes menu and deletes parent cache