Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/SocialProfile/SystemGifts/includes/UserSystemGiftsHooks.php
Ðазад
<?php class UserSystemGiftsHooks { /** * For the Echo extension. * * @param array[] &$notifications Echo notifications * @param array[] &$notificationCategories Echo notification categories * @param array[] &$icons Icon details */ public static function onBeforeCreateEchoEvent( array &$notifications, array &$notificationCategories, array &$icons ) { $notificationCategories['social-award'] = [ 'priority' => 3, 'tooltip' => 'echo-pref-tooltip-social-award', ]; $notifications['social-award-rec'] = [ 'category' => 'social-award', 'group' => 'interactive', 'presentation-model' => 'EchoUserSystemGiftPresentationModel', EchoAttributeManager::ATTR_LOCATORS => [ 'EchoUserLocator::locateEventAgent' ], 'canNotifyAgent' => true, 'icon' => 'social-award', 'bundle' => [ 'web' => true, 'email' => true ] ]; $icons['social-award'] = [ 'path' => 'SocialProfile/images/notifications-award.svg' ]; } /** * Add user to be notified on Echo event * * @param EchoEvent $event * @param User[] &$users */ public static function onEchoGetDefaultNotifiedUsers( EchoEvent $event, array &$users ) { switch ( $event->getType() ) { case 'social-award-rec': $extra = $event->getExtra(); $targetId = $extra['target']; $users[] = User::newFromId( $targetId ); break; } } /** * Set bundle for message * * @param EchoEvent $event * @param string &$bundleString */ public static function onEchoGetBundleRules( EchoEvent $event, &$bundleString ) { switch ( $event->getType() ) { case 'social-award-rec': $bundleString = 'social-award-rec'; break; } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка