*/ class DonationFormWishlistListener implements EventListener { protected $system = 'wishlist'; protected $prefix = 'donation_wishlist_'; protected $eventObj; /** * @see EventListener::execute() */ public function execute($eventObj, $className, $eventName) { $this->eventObj = $eventObj; if($this->eventObj->system != $this->system) { return; } switch($eventName) { case 'assignVariables': $this->assignVariables(); break; } } /** * @see Page::assignVariables() */ protected function assignVariables() { switch($this->eventObj->step) { case 1: WCF::getTPL()->assign(array( 'donation_system' => $this->system, 'donation_icon' => '', 'donation_title' => WCF::getLanguage()->get('wcf.donation.category.donation.plugins.wishlist'), 'donation_description' => WCF::getLanguage()->get('wcf.donation.category.donation.plugins.wishlist.description') )); WCF::getTPL()->append('additionalDonationSystems', WCF::getTPL()->fetch('donation_container')); break; } } } ?>