Project

General

Profile

Actions

Feature proposal #3817

closed

API based triggers

Added by krileon over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
17 December 2012
Due date:
% Done:

100%

Estimated time:

Description

Implement triggers for easily adding new activity through API (same way you'd call CB Captcha for example). Implement triggers for display and access so activity can be altered externally (e.g. allow 3rd party extensions and CB plugins to add activity and change that activities display and access).

Actions #1

Updated by krileon over 11 years ago

  • Target version changed from 3.0.0 to 2.2.0
Actions #2

Updated by krileon over 11 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented the following triggers.

activity_onBeforeMessageDisplay
activity_onAfterMessageDisplay
activity_onBeforeItemDisplay
activity_onAfterItemDisplay
activity_onBeforeUpdateActivity
activity_onBeforeCreateActivity
activity_onAfterUpdateActivity
activity_onAfterCreateActivity
activity_onBeforeDeleteActivity
activity_onAfterDeleteActivity
activity_onBeforeAccess
activity_onAfterAccess
activity_addActivity

The trigger activity_addActivity is used to add new activity using the following usage.

$_PLUGINS->trigger( 'activity_addActivity', array( $userId, $type, $user, $subtype, $item, $from, $to, $title, $message, $icon, $class, $date ) );

Only userid and type are required. Leaving date empty will cause it to use UTC now (best to leave as this).

Actions #3

Updated by krileon about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF