Forum Moderators: coopster
class PrivateMessageFolder {
function deleteFolder($_spillOverFolderId) {
}
}
Now, in the delete folder function, it obviously deletes the folder, and moves all the private messages to the spill over folder.
My question is, where do I do my error checking to make sure that, lets say the spill over folder is owned by the owner of the folder being deleted? Do I do it before I call
$object->deleteFolder($_spillOverFolderId)
or do I do it inside the function? I am just unsure where to do error checking for classes, while keeping them reusable.
deleteFolder($_spillOverFolderId);
It simply moves the messages and deletes them; no checking for user ownership of the folders in question.