1. YoureCom
    1. About me
  2. YoureCom Insights
  3. Work Place
    1. My Account
  4. Support
  5. GitHub
  6. Pulse
  7. ByteMon
    1. Manage Community
    2. Design Portal Identity
  • Login
  • Register
  • Cart
  • Search
Workplace
  • Everywhere
  • Workplace
  • Workplace
  • Articles
  • Pages
  • Tasks
  • Products
  • More Options
  1. YoureCom – Custom Software Solutions
  2. Workplace
  3. Workplace

Revision of own events #169

  • Marcel Beckers
  • January 15, 2023 at 12:49 PM
  • 0 Comments
  • Done Done on: March 7, 2025 at 7:50 AM
✔ Done

Events should be adjusted

Bislang:

Code
$parameters = [
    'value' => \random_int(1, 1024),
];

EventHandler::getInstance()->fireAction($this, 'valueAvailable', $parameters);
PHP
<?php

namespace wcf\system\event\listener;

use wcf\form\ValueForm;

final class ValueDumpListener implements IParameterizedEventListener
{
    /**
     * @inheritDoc
     * @param ValueForm $eventObj
     */
    public function execute($eventObj, $className, $eventName, array &$parameters)
    {
        var_dump($parameters['value']);
    }
}
Display More

Absofort

Code
EventHandler::getInstance()->fire(new ValueAvailable(\random_int(1, 1024)));
PHP
<?php

namespace wcf\system\foo\event;

use wcf\system\event\IEvent;

final class ValueAvailable implements IEvent
{
    /**
     * @var int
     */
    private $value;

    public function __construct(int $value)
    {
        $this->value = $value;
    }

    public function getValue(): int
    {
        return $this->value;
    }
}
Display More
ByteMon Alpha

Öffne deiner Community das Tor zur ByteMon-Welt

Deine Mitglieder spielen mit ihrem bestehenden Konto, treffen Spieler aus anderen Communities und erkunden eine gemeinsame Welt. Der Client ist kostenlos.

ByteMon entdecken Jetzt spielen
ByteMon Alpha

Open the gateway to the ByteMon world for your community

Your members play with their existing accounts, meet players from other communities and explore one shared world. The client is free.

Discover ByteMon Play now

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Ready to make your community smarter?

Whether you need a ready-made product or a custom software solution – see for yourself.

Buy Now Try the Demo

Over 4,978 satisfied customers • Direct support from the developer

Category Responsible

  • Marcel Beckers

    Administrator

Last completed Tasks

  1. Fehlende Sprachvariable Clan Verwaltung

    KleinCrafter Done on September 7, 2026 at 8:22 PM
  2. Begriff wird nicht angezeigt Definitions

    negteit Done on September 7, 2026 at 8:03 PM
  3. Begriff vorschlagen erzeugt leere Fehlermeldung Definitions

    benzel Done on September 5, 2026 at 3:47 AM
  4. Upgrade 6.2.7 - HTML Tags Definitions

    benzel Done on September 3, 2026 at 9:02 PM
  5. Verfügbarkeit auf CMS-Seiten, Artikeln und Datenbank Definitions

    benzel Done on September 3, 2026 at 5:39 AM
  6. Mobile Ansicht // Laden bestehender Einträge // Fehlermeldung bei Aktualisieren Definitions

    benzel Done on September 3, 2026 at 5:37 AM
YoureCom – Custom Software Solutions

YoureCom – Over 20 Years of Professional Software Solutions.

Custom software solutions for communities, associations, and businesses — from Wuppertal to customers around the world.

Products

  • Pulse
  • Workplace
  • Clan Management
  • Competitions
  • Shop
  • MultiHunter

Company

  • About
  • Contact
  • YoureCom Insights
  • GitHub

Legal

  • Privacy Policy
  • Legal Notice
  • Terms & Conditions
  • Cancel Contract
  • Cancel Subscriptions
  • Right of Withdrawal
© 2026 YoureCom · Marcel Beckers