*** empty log message ***

This commit is contained in:
wnz_gh05t 2005-02-28 15:52:35 +00:00
parent 5eac376f6e
commit 08aec6c4d7
2 changed files with 10 additions and 3 deletions

View File

@ -4,9 +4,8 @@ TODO:
picture size
thumbnail size (problem with general thumbs / icons)
- advanced search dialog, accessable via sideboxmenu
- delete dialog --> also delete pictures from vfs
- show dialog
- make delete, show and edit dialoges popup
- make delete, show and edit dialoges popup (??)
- some artwork : general resource pictures like (room, car, beamer ...) (Benkom)
- sitemgr module

View File

@ -2,7 +2,7 @@
/**************************************************************************\
* eGroupWare - resources - Resource Management System *
* http://www.egroupware.org *
* Written by Lukas Weiss [ichLukas@gmx.de] and *
* Written by Lukas Weiss [wnz_gh05t@users.sourceforge.net] and *
* Cornelius Weiss [nelius@gmx.net] *
* ----------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
@ -195,8 +195,16 @@ class bo_resources
return $this->so->save($resource) ? false : lang('Something went wrong by saving resource');
}
/*!
@function delete
@abstract deletes resource including pictures and links
@autor Lukas Weiss <wnz_gh05t@users.sourceforge.net>
@param int $id id of resource
*/
function delete($id)
{
$this->remove_picture($id);
$this->link->unlink(0,'resources',$id);
return $this->so->delete(array('id'=>$id)) ? false : lang('Something went wrong by saving resource');
}