Bitrix-D7  20.0.0
main/lib/eventresult.php
См. документацию.
1 <?php
2 namespace Bitrix\Main;
3 
5 {
6  const UNDEFINED = 0;
7  const SUCCESS = 1;
8  const ERROR = 2;
9 
10  protected $moduleId;
11  protected $handler;
12  protected $type;
13  protected $parameters;
14 
15  public function __construct($type, $parameters = null, $moduleId = null, $handler = null)
16  {
17  $this->type = $type;
18  $this->moduleId = $moduleId;
19  $this->handler = $handler;
20  $this->parameters = $parameters;
21  }
22 
23  /** @deprecated Use getType() */
24  public function getResultType()
25  {
26  return $this->getType();
27  }
28 
29  public function getType()
30  {
31  return $this->type;
32  }
33 
34  public function getModuleId()
35  {
36  return $this->moduleId;
37  }
38 
39  public function getHandler()
40  {
41  return $this->handler;
42  }
43 
44  public function getParameters()
45  {
46  return $this->parameters;
47  }
48 }
Bitrix\Main\EventResult\$type
$type
Definition: main/lib/eventresult.php:12
Bitrix\Main\EventResult\getType
getType()
Definition: main/lib/eventresult.php:29
Bitrix\Main\EventResult\__construct
__construct($type, $parameters=null, $moduleId=null, $handler=null)
Definition: main/lib/eventresult.php:15
Bitrix\Main\EventResult
Definition: main/lib/eventresult.php:4
Bitrix\Main\EventResult\getHandler
getHandler()
Definition: main/lib/eventresult.php:39
Bitrix\Main\EventResult\getModuleId
getModuleId()
Definition: main/lib/eventresult.php:34
Bitrix\Main
Bitrix\Main\EventResult\getParameters
getParameters()
Definition: main/lib/eventresult.php:44
Bitrix\Main\EventResult\$moduleId
$moduleId
Definition: main/lib/eventresult.php:10
Bitrix\Main\EventResult\ERROR
const ERROR
Definition: main/lib/eventresult.php:8
Bitrix\Main\EventResult\UNDEFINED
const UNDEFINED
Definition: main/lib/eventresult.php:6
Bitrix\Main\EventResult\SUCCESS
const SUCCESS
Definition: main/lib/eventresult.php:7
Bitrix\Main\EventResult\$handler
$handler
Definition: main/lib/eventresult.php:11
Bitrix\Main\EventResult\getResultType
getResultType()
Definition: main/lib/eventresult.php:24
Bitrix\Main\EventResult\$parameters
$parameters
Definition: main/lib/eventresult.php:13