/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
libraries/src/Event/Extension/BeforeJoomlaAutoupdateEvent.php
52 строки
1 KB
Richard Fath
Joomla! 5.4.0 Beta 2
31 авг 2025, 12:12
31 авг 2025, 12:12
2cdba09
Код
Авторство
О чём код?
<?php /** * Joomla! Content Management System * * @copyright (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Event\Extension; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Class for Joomla Auto Update events * * @since 5.4.0 */ class BeforeJoomlaAutoupdateEvent extends AbstractJoomlaUpdateEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws \BadMethodCallException * * @since 5.4.0 */ public function __construct($name, array $arguments = []) { $arguments['stoppedUpdate'] = false; parent::__construct($name, $arguments); } /** * Set stop parameter to true * * @return void * * @since 5.4.0 */ public function stopUpdate() { $this->arguments['stoppedUpdate'] = true; $this->stopPropagation(); } }