Defined Action/Form/Page constructors as final
authorAlexander Ebert <ebert@woltlab.com>
Tue, 5 Jun 2012 21:17:47 +0000 (23:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 5 Jun 2012 21:17:47 +0000 (23:17 +0200)
Everything takes place in __run(), feel free to overwrite this method if you like.

wcfsetup/install/files/lib/action/AbstractAction.class.php
wcfsetup/install/files/lib/page/AbstractPage.class.php

index 17264b99c566e57c49f5849f085823ff2cb6775b..40ab568313371e6cf3d18eb234a2185ec7503d2b 100644 (file)
@@ -28,6 +28,11 @@ abstract class AbstractAction implements IAction {
         */
        public $neededPermissions = array();
        
+       /**
+        * @see wcf\form\IAction::__run()
+        */
+       public final function __construct() { }
+       
        /**
         * @see wcf\action\IAction::__run()
         */
index 85c4acee2d1035a4b6854f77e5f01da04bdbd78a..31ca7ca9e0ecb502682488c349e00f0252639ab0 100644 (file)
@@ -47,6 +47,11 @@ abstract class AbstractPage implements IPage {
         */
        public $neededPermissions = array();
        
+       /**
+        * @see wcf\form\IPage::__run()
+        */
+       public final function __construct() { }
+       
        /**
         * @see wcf\page\IPage::__run()
         */