View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - How to delete and item - ProjeQtOr
 
 

How to delete and item

More
28 Jan 2013 10:27 #1 by imenkolsi
Hi i was wondering if you already wrote a function that i can use to delete and item from the database

well i looked in the SqlElement.php but could find nothing

So please can you tell me how can i delete an item

thanks in advance

Please Log in or Create an account to join the conversation.

More
28 Jan 2013 11:19 #2 by babynus
Replied by babynus on topic Re: How to delete and item
Every object than extends SqlElement has a method delete()

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
28 Jan 2013 11:28 #3 by imenkolsi
ok so if i want to delete a resource by the id

i put something like this

$resource = new Resource ($id);
$resource->delete();

it didn't work for me ? would u help me please

Please Log in or Create an account to join the conversation.

More
28 Jan 2013 11:44 #4 by babynus
Replied by babynus on topic Re: How to delete and item
you'd better write
$resource = new Resource ($id);
$result=$resource->delete();
Then you've got the result of delete operation (as a message that will be displayed).
You can see for instance in /tool/deleteObject.php how this result can be managed.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.049 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.