@ Nik
sorry for the late reply, I finished doing my integration plugin and the documentation and discovered I was a little burnt out
Let me just address the points as I see them
1) the component will have to trigger the deletion calls - yes this is what I thought. Adding the code into the plugin give the component developers the opportunity to do this.
2) i prefer the inclusion of the deletion code in the plugin. it keeps it centralized and is more logical. Also for 3rd party developers who use other systems give them the opportunity to add something similar there whilst maintaining standards. Small time developers like myself can also see the extra functionality and add it. Lastly it allows this extra feature to be added to existing plugins with backward compatability.
3) now to my proposed functions can you consider the following:
deletion
- deleteComments($component, $cid) - this will delete comments for one article
- deleteComments($component, $cid = array() ) - this will delete comments for all article(s) supplied
- deleteAllComments($component) - this will delete all comments for a component
NB: These could all be combined into 1 function and when you want to delete all comments for a component $cid = 'ALL'. I thoought having the deleteAllComments separate was safer to prevent accidental global deletion but it does add an extra function on, i will leave this to you. 1 function is neater though.
orphaned comments
- checkOrphanedComments($component) - this will return a list/array or comments that do not belong to an article for that component. this is useful to find comments for deleted articles in the component caused by previous versions of komento which do not have the delete function.
- moveComments($component, $cid, $target_cid) - this function allows the component to move the comments to a new article (i will leave the merge logic to you). This function will only allow the moving of comments within the component. I dont know if a finer grain movement is required i.e. for individual comments
NB: I would like to see the ability to move comments to other components and articles via the komento admin, with the addition option to move the comment thread or all comments on that article. I know you can alter the article ID for a single comment but this is a bit limited. e.g. I have a knowledge base and blog. So when I have an article in my knowledge base and I decide I want to now put my article into my blog I want the ability to move my comments for that article along with it. I would imagine doing this via a batch/move function similar to joomla's feature.
NB: I would also like the ability to scan for orphaned articles within the komento admin. For this feature and the above feature I would see the use of a standard joomla 'articles panel', like how joomla rticles are displayed with all of the filtering options and batch/move buttons
I have added these suggestions here because they are heavily related.
If you need anymore follow ups please let me know as i am back to normal.
thanks
shoulders