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 * This triggers when a smarty parse error happens via \Smarty::trigger_error
16 * Event: civi.smarty.error
18 * Class SmartyErrorEvent
19 * @package Civi\API\Event
21 class SmartyErrorEvent
extends \Symfony\Component\EventDispatcher\Event
{
24 * The error message generated by smarty
30 * The error type - one of PHP error constants
36 * @param string $errorMsg
37 * @param int $errorType
39 public function __construct($errorMsg, $errorType) {
40 $this->errorMsg
= $errorMsg;
41 $this->errorType
= $errorType;
47 public function getHookValues() {
48 return [$this->errorMsg
, $this->errorType
];