3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 namespace Civi\Core\Event
;
15 * Class AuthorizeEvent
16 * @package Civi\API\Event
18 class PostEvent
extends GenericHookEvent
{
21 * One of: 'create'|'edit'|'delete'
45 * @param string $action
46 * @param string $entity
48 * @param object $object
50 public function __construct($action, $entity, $id, &$object) {
51 $this->action
= $action;
52 $this->entity
= $entity;
54 $this->object = &$object;
60 public function getHookValues() {
61 return [$this->action
, $this->entity
, $this->id
, &$this->object];