File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/calendar/lib/internals/handlestatustrait.php
Back
<?php namespace Bitrix\Calendar\Internals; trait HandleStatusTrait { /** @var callable[] $statusHandlers*/ protected array $statusHandlers = []; /** * @param callable $handler * * @return $this */ public function addStatusHandler(callable $handler): self { $this->statusHandlers[] = $handler; return $this; } /** * @param callable[] $handlers * * @return $this */ public function addStatusHandlerList(array $handlers): self { foreach ($handlers as $handler) { $this->statusHandlers[] = $handler; } return $this; } /** * @return callable[] */ public function getStatusHandlerList(): array { return $this->statusHandlers; } /** * @param $status * * @return void */ protected function sendStatus($status) { foreach ($this->statusHandlers as $statusHandler) { call_user_func($statusHandler, $status); } } // }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings