root/application.register/files/lib/action/DisableApplicationRegisterNotificationsAction.class.php @ 310

Revision 310, 0.8 kB (checked in by MDMAN, 5 years ago)

BugFixes?

  • Property svn:executable set to *
Line 
1<?php
2require_once(WCF_DIR.'lib/action/AbstractAction.class.php');
3
4/**
5 * UnterdrÃŒckt die Info-Box fÃŒr das Bewerbungshinweis Benutzergruppen - PlugIn durch einen Eintrag in die Datenbank.
6 *
7 * @author      Markus Gerdelmann, Torben Brodt
8 * @package     de.mdman.application.register
9 * @license     GNU General Public License <http://opensource.org/licenses/gpl-3.0.html>
10 */
11class DisableApplicationRegisterNotificationsAction extends AbstractAction {
12       
13        /**
14         * @see AbstractAction::execute()
15         */
16        public function execute() {
17                parent::execute();
18               
19                $sql = "DELETE FROM     wcf".WCF_N."_group_application_notification
20                                WHERE           groupID IN (
21                                                        SELECT  groupID
22                                                        FROM    wcf".WCF_N."_group_leader
23                                                        WHERE   userID = ".WCF::getUser()->userID."
24                                                        )";
25                WCF::getDB()->sendQuery($sql);
26        }
27}
28?>
Note: See TracBrowser for help on using the browser.