Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update points.rst to explain point trigger on another Contact #195

Open
wants to merge 3 commits into
base: 5.x
Choose a base branch
from
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