src/bbn/appui/observer.php
public function user_delete($id): int
  {
    if ( property_exists($this, 'user') && $this->check() ){
      return $this->db->delete('bbn_observers', ['id' => $id, 'id_user' => $this->user]);
    }
    return 0;
  }
public function user_delete($id): int
  {
    if ( property_exists($this, 'user') && $this->check() ){
      return $this->db->delete('bbn_observers', ['id' => $id, 'id_user' => $this->user]);
    }
    return 0;
  }
public function user_delete ( $ id ) : int { if ( property_exists ( $ this , 'user' ) && $ this -> check ( ) ) { return $ this -> db -> delete ( 'bbn_observers' , [ 'id' => $ id , 'id_user' => $ this -> user ] ) ; } return 0 ; }
Deletes the given observer for the current user
@param string $id
@return int
Deletes the given observer for the current user