From 08aec6c4d7a51e32a71a605f30ce2e18fae39e60 Mon Sep 17 00:00:00 2001 From: wnz_gh05t Date: Mon, 28 Feb 2005 15:52:35 +0000 Subject: [PATCH] *** empty log message *** --- resources/TODO | 3 +-- resources/inc/class.bo_resources.inc.php | 10 +++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/resources/TODO b/resources/TODO index d1b2cc8052..77471a5972 100644 --- a/resources/TODO +++ b/resources/TODO @@ -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 diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 9004d34565..b21496ea6f 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -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 + @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'); }