Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/components/points.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ In order for the custom Point Action to work, add something like the following i

$this->getModel('point')->triggerAction('helloworld.action', $event->getHit());

This triggers the custom Point Action for the currently tracked Contact. If you need to perform the Point Action on another Contact you have to pass the Contact's object when invoking ``triggerAction``:

.. code-block:: php

<?php

$this->getModel('point')->triggerAction('helloworld.action', $event->getHit(), null, $someOtherLead);


.. vale off

Custom Point Action definition
Expand Down Expand Up @@ -238,4 +247,4 @@ Custom Point Trigger definition
* - ``callback``
- OPTIONAL
- mixed
- Static callback function used to execute the custom action.
- Static callback function used to execute the custom action.
Loading