[dev] Extension of commentCallback

Jan Schneider jan at horde.org
Wed Mar 7 23:35:10 UTC 2007


Zitat von duck <duck at obala.net>:

> Jan Schneider wrote:
>> Sounds good, but I don't quite understand what that second  
>> parameter  should be. The user name? The permission?
>>
>
> I will give an example. Now a standard API call si  
> _turba_commentCallback($id). I purpose something like  
> _turba_commentCallback($id, $type). Where type can be
>
>    *
>
>      title -> returns the data title (default and used on 99% of cases)
>
>    *
>
>      owner -> returns the owner of the commented data (used manly when
>      creating the first post when the forum is created)
>
>    *
>
>      comment_posted -> a comment was posted so increment the api
>      internal comment count
>
>    *
>
>      comment_deleted -> a comment was deleted so decrement the api
>      internal comment count

Ok, understood. But the comment_* examples don't make sense to me.  
Agora should track the number of comments, not the commented  
application.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list