public static function parseMasterStyles($masterContent)
    {
        $styles = array();
        $up = Kwf_Config::getValue('application.uniquePrefix');
        if ($up) $up .= '-';

        if (strpos($masterContent, ".{$up}webStandard")===false) return $styles;
        $up = str_replace('-', '\-', $up);
        preg_match_all("#\.{$up}webStandard\s+(span|p|h[1-6])(\.(.+))?(\s+)?{([^}]+)}\s*\/\*(.*)\*\/#mU", $masterContent, $m);

        foreach (array_keys($m[1]) as $i) {
            $styles[] = array(
                'id' => 'master'.$i,
                'name' => trim($m[6][$i]),
                'tagName' => $m[1][$i],
                'className' => $m[3][$i],
                'styles' => $m[5][$i],
            );
        }

        return $styles;
    }
public static function parseMasterStyles($masterContent)
    {
        $styles = array();
        $up = Kwf_Config::getValue('application.uniquePrefix');
        if ($up) $up .= '-';

        if (strpos($masterContent, ".{$up}webStandard")===false) return $styles;
        $up = str_replace('-', '\-', $up);
        preg_match_all("#\.{$up}webStandard\s+(span|p|h[1-6])(\.(.+))?(\s+)?{([^}]+)}\s*\/\*(.*)\*\/#mU", $masterContent, $m);

        foreach (array_keys($m[1]) as $i) {
            $styles[] = array(
                'id' => 'master'.$i,
                'name' => trim($m[6][$i]),
                'tagName' => $m[1][$i],
                'className' => $m[3][$i],
                'styles' => $m[5][$i],
            );
        }

        return $styles;
    }
public static function parseMasterStyles ( $ masterContent ) { $ styles = array ( ) ; $ up = Kwf_Config :: getValue ( 'application.uniquePrefix' ) ; if ( $ up ) $ up .= '-' ; if ( strpos ( $ masterContent , ".{$up}webStandard" ) === false ) return $ styles ; $ up = str_replace ( '-' , '\-' , $ up ) ; preg_match_all ( "#\.{$up}webStandard\s+(span|p|h[1-6])(\.(.+))?(\s+)?{([^}]+)}\s*\/\*(.*)\*\/#mU" , $ masterContent , $ m ) ; foreach ( array_keys ( $ m [ 1 ] ) as $ i ) { $ styles [ ] = array ( 'id' => 'master' . $ i , 'name' => trim ( $ m [ 6 ] [ $ i ] ) , 'tagName' => $ m [ 1 ] [ $ i ] , 'className' => $ m [ 3 ] [ $ i ] , 'styles' => $ m [ 5 ] [ $ i ] , ) ; } return $ styles ; }
public fuer test
public fuer test