function reset($Ensure = false)
	{
		if ($Ensure !== true)
		{
			throw new \Exception ("You must pass true to this function, otherwise it won't work.");
			return;
		}
		$res = Jf::sql ( "DELETE FROM {$this->tablePrefix()}{$this->type()}" );
		$Adapter = get_class(Jf::$Db);
		if ($this->isMySql())
			Jf::sql ( "ALTER TABLE {$this->tablePrefix()}{$this->type()} AUTO_INCREMENT=1 " );
		elseif ($this->isSQLite())
			Jf::sql ( "delete from sqlite_sequence where name=? ", $this->tablePrefix () . "{$this->type()}" );
		else
			throw new \Exception ( "Rbac can not reset table on this type of database: {$Adapter}" );
		$iid = Jf::sql ( "INSERT INTO {$this->tablePrefix()}{$this->type()} (Title,Description,Lft,Rght) VALUES (?,?,?,?)", "root", "root",0,1 );
		return (int)$res;
	}
function reset($Ensure = false)
	{
		if ($Ensure !== true)
		{
			throw new \Exception ("You must pass true to this function, otherwise it won't work.");
			return;
		}
		$res = Jf::sql ( "DELETE FROM {$this->tablePrefix()}{$this->type()}" );
		$Adapter = get_class(Jf::$Db);
		if ($this->isMySql())
			Jf::sql ( "ALTER TABLE {$this->tablePrefix()}{$this->type()} AUTO_INCREMENT=1 " );
		elseif ($this->isSQLite())
			Jf::sql ( "delete from sqlite_sequence where name=? ", $this->tablePrefix () . "{$this->type()}" );
		else
			throw new \Exception ( "Rbac can not reset table on this type of database: {$Adapter}" );
		$iid = Jf::sql ( "INSERT INTO {$this->tablePrefix()}{$this->type()} (Title,Description,Lft,Rght) VALUES (?,?,?,?)", "root", "root",0,1 );
		return (int)$res;
	}
function reset ( $ Ensure = false ) { if ( $ Ensure !== true ) { throw new \ Exception ( "You must pass true to this function, otherwise it won't work." ) ; return ; } $ res = Jf :: sql ( "DELETE FROM {$this->tablePrefix()}{$this->type()}" ) ; $ Adapter = get_class ( Jf :: $ Db ) ; if ( $ this -> isMySql ( ) ) Jf :: sql ( "ALTER TABLE {$this->tablePrefix()}{$this->type()} AUTO_INCREMENT=1 " ) ; elseif ( $ this -> isSQLite ( ) ) Jf :: sql ( "delete from sqlite_sequence where name=? " , $ this -> tablePrefix ( ) . "{$this->type()}" ) ; else throw new \ Exception ( "Rbac can not reset table on this type of database: {$Adapter}" ) ; $ iid = Jf :: sql ( "INSERT INTO {$this->tablePrefix()}{$this->type()} (Title,Description,Lft,Rght) VALUES (?,?,?,?)" , "root" , "root" , 0 , 1 ) ; return ( int ) $ res ; }
Reset the table back to its initial state
Keep in mind that this will not touch relations

@param boolean $Ensure
must be true to work, otherwise an \Exception is thrown
@throws \Exception
@return integer number of deleted entries
Reset the table back to its initial state Keep in mind that this will not touch relations