postMessage()
postMessage(string $scope, string $forum_name, string $callback, array $params = array(), string $url = null, array $variables = null) : mixed
Allows other Horde apps to post messages.
The forum name is constructed by just the $forum_name variable under the
data root 'agora.forums.'. It is up to the apps themselves to make
sure that the forum name is unique.
If the forum does not exist, it will be automatically created by Agora.
Parameters
string |
$scope |
The application which is posting this message. |
string |
$forum_name |
The unique name for the forum. |
string |
$callback |
A callback method of the specified application
that gets called to make sure that posting to
this forum is allowed. |
array |
$params |
Any parameters for the forum message posting.
message_id - An existing message to edit
message_parent_id - The ID of the parent message
title - Posting title
|
string |
$url |
If specified, the form gets submitted to this URL
instead of the current page. |
array |
$variables |
A hash with all variables of a submitted form
generated by this method. |
Returns
mixed
— Returns either the rendered Horde_Form for posting a message
or PEAR_Error object on error, or true in case of a
successful post.