Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
957126ed
Commit
957126ed
authored
Dec 19, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 19, 2006
Browse files
Hopefully phpdoc will format this a little better...
parent
f7bb9eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/activity.php
View file @
957126ed
...
...
@@ -61,20 +61,20 @@ function activity_occurred($activitytype, $data) {
* @param mixed $data must contain message to save.
* it can also contain url.
* each activity type has different requirements of $data -
* <b>contactus</b> must contain $message, $subject (optional), $fromname, $fromaddress, $userfrom (if a logged in user)
* <b>objectionable</b> must contain $message, $view and $artefact if applicable
* <b>maharamessage</b> must contain $users, an array of userids. $subject and $message (contents of message)
* <b>usermessage</b> must contain $userto, id of recipient user, $userfrom, id of user from
and $subject and $message (contents of message)
* <b>feedback (artefact)</b> must contain both $artefact (id) and $view (id) and $message
* <b>feedback (view)</b> must contain $view (id) and $message
* <b>watchlist (artefact)</b> must contain $artefact (id of artefact)
* and should also contain $subject (or a boring default will be used)
* <b>watchlist (view) </b> must contain $view (id of view)
and should also contain $subject (or a boring default will be used)
* <b>watchlist (community) </b> must contain $community (id of community)
and should also contain $subject (or a boring default will be used)
* <b>newview</b> must contain $owner userid of view owner AND $view (id of new view)
*
-
<b>contactus</b> must contain $message, $subject (optional), $fromname, $fromaddress, $userfrom (if a logged in user)
*
-
<b>objectionable</b> must contain $message, $view and $artefact if applicable
*
-
<b>maharamessage</b> must contain $users, an array of userids. $subject and $message (contents of message)
*
-
<b>usermessage</b> must contain $userto, id of recipient user, $userfrom, id of user from
-
and $subject and $message (contents of message)
*
-
<b>feedback (artefact)</b> must contain both $artefact (id) and $view (id) and $message
*
-
<b>feedback (view)</b> must contain $view (id) and $message
*
-
<b>watchlist (artefact)</b> must contain $artefact (id of artefact)
*
-
and should also contain $subject (or a boring default will be used)
*
-
<b>watchlist (view) </b> must contain $view (id of view)
-
and should also contain $subject (or a boring default will be used)
*
-
<b>watchlist (community) </b> must contain $community (id of community)
-
and should also contain $subject (or a boring default will be used)
*
-
<b>newview</b> must contain $owner userid of view owner AND $view (id of new view)
*/
function
handle_activity
(
$activitytype
,
$data
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment