samples/PhotoAlbum/lib/rb.php
public function wipe($type) {
		$table = $type;
		$table = $this->safeTable($table);
		$sql = "TRUNCATE $table CASCADE";
		$this->adapter->exec($sql);
	}
public function wipe($type) {
		$table = $type;
		$table = $this->safeTable($table);
		$sql = "TRUNCATE $table CASCADE";
		$this->adapter->exec($sql);
	}
public function wipe ( $ type ) { $ table = $ type ; $ table = $ this -> safeTable ( $ table ) ; $ sql = "TRUNCATE $table CASCADE" ; $ this -> adapter -> exec ( $ sql ) ; }
This method removes all beans of a certain type.
This methods accepts a type and infers the corresponding table name.

@param  string $type bean type

@return void
This method removes all beans of a certain type . This methods accepts a type and infers the corresponding table name .