public function removeFromDB(){
    if (is_null($this->result)) {
      $this->fetchData();
    }
    if(count($this->result) > 0){
      if(!$this->result[0] instanceof Web2All_Table_SaveObject){
        throw new Exception("Web2All_Table_ObjectList->removeFromDB: Not a saveobject, you can't delete a non saveobject.");
      }
      foreach($this->result as $row){
        $row->deleteFromDB();
      }
    }
  }
public function removeFromDB(){
    if (is_null($this->result)) {
      $this->fetchData();
    }
    if(count($this->result) > 0){
      if(!$this->result[0] instanceof Web2All_Table_SaveObject){
        throw new Exception("Web2All_Table_ObjectList->removeFromDB: Not a saveobject, you can't delete a non saveobject.");
      }
      foreach($this->result as $row){
        $row->deleteFromDB();
      }
    }
  }
public function removeFromDB ( ) { if ( is_null ( $ this -> result ) ) { $ this -> fetchData ( ) ; } if ( count ( $ this -> result ) > 0 ) { if ( ! $ this -> result [ 0 ] instanceof Web2All_Table_SaveObject ) { throw new Exception ( "Web2All_Table_ObjectList->removeFromDB: Not a saveobject, you can't delete a non saveobject." ) ; } foreach ( $ this -> result as $ row ) { $ row -> deleteFromDB ( ) ; } } }
Method which removes all database table entries collected in this object.

The table objects should extend the Web2All_Table_SaveObject class.

@throws Exception
Method which removes all database table entries collected in this object .