Revisions for agora/lib/api.php

Location: [ Horde ] / agora / lib / api.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.127 (+4 -13 lines) 03/27/2008 06:57 AM Duck duck

Rename method to a more intuitive name getThreadsByForumOwner and fix its call

1.126 (+47 -1 lines) 03/25/2008 05:39 PM Duck duck

Add a method to directly select the messages from a forums owned by a specific users. For example we would like to see the recent comments in Ansel, Thomas etc. but just on our content. So we can easily monitor if someone commented one of our images, blogs etc.

An example page is added. (is not linked from any where). It display all last 5 comments from all our content on the site - from each api that has the hasComment call. But this is just an example. Every api should have its own block for this to link back the content properly and feature the listing - like in Ansel previews the commented image.

1.125 (+2 -1 lines) 02/02/2008 02:28 PM Duck duck

phpDOC

1.124 (+2 -2 lines) 01/02/2008 06:11 AM Jan Schneider jan

Happy New Year

1.123 (+2 -2 lines) 12/22/2007 06:40 AM Duck duck

Add RSS link to comments renderer.
Allow to pass forum id to rss even from other scopes.
Assign my remaining copyrights to horde

1.122 (+1 -2 lines) 12/21/2007 06:16 AM Duck duck

Don't navigate feeds, link messages to agora.
Allow to pass a forum name to threads rss to let tracing comments in various scopes.
Fix comments template warnings

1.121 (+23 -1 lines) 12/17/2007 06:49 AM Duck duck

Perform moderation actions before list messages waiting moderation. Add an api call to pass the moderation form.

1.120 (+18 -4 lines) 12/16/2007 05:54 PM Duck duck

Fix forum update.

1.119 (+3 -1 lines) 11/26/2007 12:05 AM Michael Rubinsky mrubinsk

Get the api working again, re-add necessary require statements

1.118 (+3 -3 lines) 11/23/2007 03:40 PM Duck duck

registry is global

1.117 (+1 -5 lines) 11/23/2007 03:38 PM Duck duck

Move getForumId() into subclass to avoid scope check when we already know it.
As having autoload loaded, use it.

1.110.2.1 FRAMEWORK_3 (+2 -1 lines) 11/02/2007 02:52 PM Ben Klang bklang

Need to make $registry available to this method

1.116 (+3 -3 lines) 10/16/2007 06:37 PM Duck duck

Bug #5800

1.115 (+3 -2 lines) 10/02/2007 01:30 AM Michael Rubinsky mrubinsk

Fix _agora_getThreadsBatch method. This fixes recent comments blocks in Ansel and Jonah (and maybe others?).

1.114 (+3 -3 lines) 09/24/2007 09:04 AM Duck duck

We already know the number of threads, so do not re-count them

1.113 (+8 -8 lines) 09/24/2007 06:34 AM Duck duck

Fix comments

1.112 (+2 -2 lines) 09/23/2007 05:19 AM Duck duck

Rename this file to leave place for Horde_View

1.111 (+32 -32 lines) 09/23/2007 05:16 AM Duck duck

Replace deprecated is_a with instanceof

1.110 (+2 -2 lines) 09/21/2007 01:47 PM Chuck Hagenbuch chuck

Checking a boolean expression for ? true : false is always redundant.

Tags: FRAMEWORK_3

1.109 (+2 -2 lines) 08/30/2007 09:25 AM Jan Schneider jan

Fix form field name.

1.108 (+2 -2 lines) 07/16/2007 05:47 AM Duck duck

Pass the template file

1.107 (+2 -2 lines) 06/27/2007 01:22 PM Jan Schneider jan

Bump year, looks like a missed a few last time.

1.106 (+2 -4 lines) 06/09/2007 01:26 PM Duck duck

Split even the forums per scope.

Don't show the forums list selection in search form for scopes other than agora ? having thousends of forms for comments is not usefull.

Use getBareForums for forms for search forum selection.

1.105 (+13 -10 lines) 06/09/2007 11:40 AM Duck duck

Add getBareForums to avoid all data manipulation for the permission tree.

1.104 (+19 -31 lines) 06/01/2007 12:26 PM Duck duck

Extend doComments to allow user to switch threaded/flat view. Flat view has pagination and the ability to resort comments directly from the comments. I will try to find some time this weekend to combine this  code from the classic thread listing.

1.103 (+9 -8 lines) 05/18/2007 09:44 AM Duck duck

Allow to delegate a permission to ascope even no forum exists

1.102 (+4 -2 lines) 04/25/2007 12:58 PM Michael Rubinsky mrubinsk

fix undefined vars

1.101 (+34 -6 lines) 04/23/2007 12:43 PM Michael Rubinsky mrubinsk

- Allow other applications to delete entire forums through the api.  Necessary for removing comments after images with comments, for example, are deleted.
- Minor logic tweaks

1.100 (+7 -4 lines) 04/20/2007 02:16 PM Michael Rubinsky mrubinsk

Allow limiting by scope in forums/list method

1.99 (+56 -1 lines) 04/20/2007 10:19 AM Michael Rubinsky mrubinsk

Another 'batch' api method - takes an array of unique forum names and returns a nested array of the threads.

1.98 (+8 -5 lines) 04/20/2007 10:16 AM Michael Rubinsky mrubinsk

- Add missing api parameters and small tweak

1.97 (+46 -1 lines) 04/15/2007 12:02 PM Michael Rubinsky mrubinsk

Add new api method for retrieving message counts in batches.  After further thought, I decided it would probably be better to implenet new api calls for the 'batch' methods to avoid any bc problems - especially those who might be using jonah/agora to power non-horde web sites.

Probably will still add a getThreadsBatch method as well - with the added ability to specify what fields to return.  This will allow us, for example, to only fetch the message_timestamp and title so we can display lists of most recently added comments without having to retrieve the entire message.

If anyone has a better method name than *Batch feel free to let me know or change it...

1.96 (+3 -3 lines) 04/15/2007 10:08 AM Michael Rubinsky mrubinsk

phpdoc nit

1.95 (+5 -4 lines) 04/13/2007 09:18 PM Michael Rubinsky mrubinsk

phpdoc

1.94 (+25 -18 lines) 03/26/2007 10:11 AM Duck duck

Use nl2br instead of text2html since conflicts with bbcode.
Fix moderation with splitting tables. Now you can moderate comments only for the current scope or the forums you own.
Consolidate the app/scope naming in the API methods declaration.
Add moderation todo for th comment API.
Comments are pushed inside one forum, so allow to count all the messages not just threads.
As all handling is done inside the doComments so we never know when an reply is posted or a data owner deleted a messages, return a count of all messages to the calling app.

1.93 (+6 -3 lines) 03/16/2007 08:42 AM Duck duck

If the user has no permission to post a message, call the permsdenied hook if possible.

1.92 (+14 -2 lines) 03/16/2007 07:48 AM Duck duck

Catch errors

1.91 (+7 -4 lines) 03/16/2007 06:30 AM Duck duck

Merge with the default ones

1.90 (+50 -16 lines) 03/10/2007 09:18 AM Duck duck

When creating a new forum set description to data title and author to data owner, to allow him to edit comments under his data.

1.89 (+30 -2 lines) 03/08/2007 07:06 AM Duck duck

Allow retrieving  messages on scope level.
Add getForumName to retrieve  the application internal id from the Agora internal ID.

1.88 (+3 -3 lines) 02/25/2007 09:54 AM Duck duck

Fix parent_id in _agora_postMessage api call

1.87 (+21 -53 lines) 02/25/2007 09:19 AM Duck duck

Simply and fix delete method.

1.86 (+19 -19 lines) 01/05/2007 06:37 AM Jan Schneider jan

Style, small logic fix.

1.85 (+2 -2 lines) 01/02/2007 07:46 AM Jan Schneider jan

Happy New Year

1.84 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.83 (+3 -3 lines) 12/30/2006 03:24 PM Jan Schneider jan

Standardize copyright wrapping and spacing.

1.82 (+4 -1 lines) 12/27/2006 11:28 PM Chuck Hagenbuch chuck

Handle errors.

1.81 (+3 -2 lines) 12/22/2006 05:49 PM Michael Rubinsky mrubinsk

Don't pass the forum_id if we want the count of all messages in the forum.
Message counts should be working again now...

1.80 (+2 -2 lines) 12/21/2006 03:15 PM Michael Rubinsky mrubinsk

Revert.

1.79 (+3 -3 lines) 12/21/2006 01:18 PM Michael Rubinsky mrubinsk

References...do these make sense?

1.78 (+2 -2 lines) 12/20/2006 05:07 PM Michael Rubinsky mrubinsk

Add missing argument.

1.77 (+3 -3 lines) 12/20/2006 07:02 AM Duck duck

Star working on morerators.
Add report as abuse action.
Display moderators under the description in forum list.
No need to check if messages exists since getMessage already does.
Standarize the error cheking in modearators actions scripts.

1.76 (+5 -9 lines) 12/18/2006 12:43 PM Duck duck

Added quote button. Now the body of the message is not copied in the body, unless the user decides to.

1.75 (+4 -7 lines) 12/18/2006 08:21 AM Duck duck

Don't search if the form is not submitted.
Fix formating of the quoted messages.
Small clean-ups.

1.74 (+15 -30 lines) 12/16/2006 10:26 AM Duck duck

Merged Agora_Forums to agora_Mesasges. For all my test seems to work even with comments in turba.

Move all forums sorting to sql.

Get all last messages in one SQL query instead of each counting.

Clean the mess with naming message_author/message_from. Now every where use message_author like is named the SQL column.

Search is performed by only one query. Instead of performing a query pear each search. I must still implement pagination and result sorting.

1.73 (+4 -4 lines) 12/13/2006 01:52 PM Duck duck

Remove the DATATREE_ROOT usage.
The root form has ?0? parent id, like in the SQL structure.

1.72 (+2 -2 lines) 11/19/2006 09:09 AM Duck duck

Remove not used no_root parameter form getForums.

Don't list all forums scopes for admin, but show scope selection in the standard action menu to  allow us future limitation of the number of selected forums directly in sql.

1.71 (+11 -6 lines) 11/01/2006 08:34 AM Duck duck

Add per scope or forum permissions

1.70 (+10 -7 lines) 10/31/2006 11:32 AM Duck duck

_agora_getThreads() was missing sort direction. This allows the functionality requested by ticked #3238 - to get the last X messages in thread. The change shouldn't brake anything since for comments _agora_doComments()  is used.

1.69 (+3 -3 lines) 10/31/2006 11:00 AM Duck duck

Use an extension to Horde_Tree to correctly list flat threads.

1.68 (+22 -36 lines) 10/31/2006 02:32 AM Duck duck

- Set default number of attachment to ?0?, to not use null and follow data logic.
- Remove forum::exits() calls from. getForumID() as an DB call already returns null if the object doesn't exists so is really not needed to access the DB twice.

1.67 (+85 -78 lines) 10/26/2006 01:10 PM Chuck Hagenbuch chuck

[cjh] Migrate from DataTree to local SQL usage (Duck <duck@obala.net>).

1.66 (+2 -2 lines) 07/23/2006 08:48 PM Chuck Hagenbuch chuck

Fix invalid SOAP datatypes.
Bug: 4187
Submitted By: Ben Klang <ben@alkaloid.net>

1.65 (+5 -2 lines) 06/11/2006 02:32 PM Chuck Hagenbuch chuck

tweak setupForumObject() to not be static, and add a check for forum object.

1.64 (+3 -3 lines) 05/29/2006 05:54 PM Jan Schneider jan

Fix parentheses, no sprintf.

1.63 (+2 -2 lines) 05/16/2006 05:52 AM Jan Schneider jan

Lots of fixes to make managing application comments working again. This whole app needs to be cleaned up one day.

1.62 (+49 -24 lines) 05/08/2006 11:15 AM Chuck Hagenbuch chuck

- remove unused auto_create parameter
- add _agora_prepareFormData to avoid some duplicate code
Submitted By: Duck <duck@obala.net>

1.61 (+82 -1 lines) 04/30/2006 04:53 PM Chuck Hagenbuch chuck

New forums/addMessage() method for adding posts without the form rendering.
Submitted by: Duck <duck@obala.net>

1.60 (+10 -10 lines) 03/10/2006 05:35 PM Chuck Hagenbuch chuck

Remove unnecessary references and Horde_Form::singleton() calls.

1.59 (+1 -1 lines) 01/01/2006 04:09 PM Jan Schneider jan

Happy new year\!

1.58 (+3 -2 lines) 12/21/2005 12:35 PM Chuck Hagenbuch chuck

reference fix

1.57 (+2 -2 lines) 09/04/2005 06:01 PM Matt Selsky selsky

Use h1 instead of div for text-only headers.

1.56 (+2 -2 lines) 08/18/2005 12:41 PM Jan Schneider jan

Fix return value.

1.55 (+2 -2 lines) 08/16/2005 05:15 PM Matt Selsky selsky

Fix quote style.

1.54 (+2 -2 lines) 07/13/2005 01:59 PM Chuck Hagenbuch chuck

reference fixes

1.53 (+3 -2 lines) 07/12/2005 12:29 PM Jan Schneider jan

reference

1.52 (+3 -3 lines) 06/01/2005 11:26 AM Jan Schneider jan

Fix api signatures.

1.51 (+37 -36 lines) 05/28/2005 02:21 PM Chuck Hagenbuch chuck

Allow specifying a custom template for rendering comments.

1.50 (+3 -3 lines) 05/25/2005 06:48 PM Chuck Hagenbuch chuck

error checking

1.49 (+5 -5 lines) 05/24/2005 04:50 PM Chuck Hagenbuch chuck

Use "doComments" instead of "doAgora", to make a semblance of staying
loosely coupled.

1.48 (+299 -60 lines) 05/24/2005 04:33 PM Chuck Hagenbuch chuck

Comments API cleanups.
Bug: 1491
Submitted by: duck@obala.net

1.47 (+1 -1 lines) 05/02/2005 09:15 AM Jan Schneider jan

[jan] Use 'rel="nofollow"' link attributes to prevent spam if showing messages
through the API.

1.46 (+1 -2 lines) 04/19/2005 11:06 PM Matt Selsky selsky

Remove @version.

1.45 (+1 -1 lines) 01/03/2005 09:34 AM Jan Schneider jan

Happy New Year

1.44 (+5 -5 lines) 12/07/2004 11:09 AM Chuck Hagenbuch chuck

Instead of hardcoding '-1' in tons of places, use a new constant: DATATREE_ROOT. Much more readable, etc. At the same time, make this an int (-1) instead of the string value ('-1') which was inconsistent with all other datatree ids, buggy, etc.

1.43 (+4 -4 lines) 11/21/2004 06:12 PM Chuck Hagenbuch chuck

Fix method call.

Submitted by: Roel Gloudemans <roel@gloudemans.info>

1.42 (+33 -5 lines) 11/11/2004 04:59 AM Jan Schneider jan

Add getMessages method to retrieve messages from a forum in a different order
than by thread.

1.41 (+63 -7 lines) 09/18/2004 05:55 AM Jan Schneider jan

Rename getThreads to renderThreads and add numMessages and new getThreads.

1.40 (+3 -3 lines) 09/15/2004 09:36 AM Jan Schneider jan

This should probably be another parameter, but for now turn JS focus off as this form is most probably always used together with other forms or on more complex pages.

1.39 (+9 -4 lines) 09/15/2004 08:28 AM Jan Schneider jan

We still might need the $url parameter but with a different purpose this time.

1.38 (+3 -8 lines) 09/15/2004 08:15 AM Jan Schneider jan

This is much simpler.

1.37 (+12 -23 lines) 09/15/2004 08:13 AM Jan Schneider jan

Don't use the complicated proxy call through messages/edit.php and
redirection. Instead allow the method to take a hash with submitted form
variables.

1.36 (+4 -3 lines) 09/14/2004 03:43 PM Jan Schneider jan

Don't overwrite form with parent data if the form has been submitted.

1.35 (+27 -8 lines) 09/14/2004 12:22 PM Jan Schneider jan

postMessage handles replies to previous posts now and getThreads takes an
optional alternative reply url.

1.34 (+7 -3 lines) 09/14/2004 11:10 AM Jan Schneider jan

Add header to comments.

1.33 (+51 -3 lines) 09/09/2004 11:55 AM Jan Schneider jan

Add getThreads method.

1.32 (+30 -12 lines) 09/07/2004 05:05 PM Chuck Hagenbuch chuck

Add an agora_perms method for creation of the 'admin' permission.

1.31 (+5 -3 lines) 09/07/2004 11:42 AM Jan Schneider jan

Fix signature.

1.30 (+36 -8 lines) 09/07/2004 11:36 AM Jan Schneider jan

Use a local notification stack to display nicely formatted messages.
Prepare for posting messages through messaged/edit.php, for example when
calling this method by RPC.

1.29 (+21 -18 lines) 09/07/2004 07:49 AM Jan Schneider jan

Require a callback to check if posting a message (and potentially
auto-creating a forum) is allowed.
Always return strings.

1.28 (+14 -9 lines) 09/07/2004 05:30 AM Jan Schneider jan

Fix parameters.

1.27 (+113 -2 lines) 08/30/2004 07:58 AM mdjukic

Add an API function to allow other apps to create forums and comments.

Only showing the 100 latest revisions. Show all revisions? (may take a while).