Added method to get all styles
authorMarcel Werk <burntime@woltlab.com>
Sun, 27 Jan 2013 14:43:57 +0000 (15:43 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 27 Jan 2013 14:43:57 +0000 (15:43 +0100)
wcfsetup/install/files/lib/system/style/StyleHandler.class.php

index 5a9a6befbac663b28329b4ed60057cb9c9e9a8e0..79f144bcca15a0a71954c8fbc8f5e67c1d90e8a4 100644 (file)
@@ -61,6 +61,15 @@ class StyleHandler extends SingletonFactory {
                return $styles;
        }
        
+       /**
+        * Returns a list of all styles.
+        *
+        * @return      array<wcf\data\style\Style>
+        */
+       public function getStyles() {
+               return $this->cache['styles'];
+       }
+       
        /**
         * Returns the active style.
         *