StorageHandler's reset() now supports multiple userIDs
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 Aug 2011 13:13:21 +0000 (15:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 5 Aug 2011 13:13:21 +0000 (15:13 +0200)
wcfsetup/install/files/lib/system/storage/StorageHandler.class.php

index 02f90ef40ab38cff5925f754d3e72667e112e983..902e2818855104c954adf1d9f6e53a2277679dbc 100644 (file)
@@ -125,12 +125,14 @@ class StorageHandler extends SingletonFactory {
        /**
         * Removes a data record from database.
         * 
-        * @param       integer         $userID
+        * @param       array           $userID
         * @param       string          $field
         * @param       integer         $packageID
         */
-       public function reset($userID, $field, $packageID = PACKAGE_ID) {
-               $this->resetFields[$userID][$packageID][] = $field;
+       public function reset(array $userIDs, $field, $packageID = PACKAGE_ID) {
+               foreach ($userIDs as $userID) {
+                       $this->resetFields[$userID][$packageID][] = $field;
+               }
        }
        
        /**