public function getAvailableThemes()
    {

        $returnValue = array();
        foreach ($this->getMap() as $target => $value) {
            //ugly
            if($target == ThemeRegistry::WEBSOURCE) {
                continue;
            }
            //retrieve all other value
            $returnValue[$target] = $value;

            // adapt path for all theme
            $returnValue[$target]['available'] = array();
            foreach ($value['available'] as $theme) {
                $returnValue[$target]['available'][] = $this->updatePath($theme);
            }

            $returnValue[$target]['base'] = $this->getResolvedBase($target);
        }
        return $returnValue;
    }
public function getAvailableThemes()
    {

        $returnValue = array();
        foreach ($this->getMap() as $target => $value) {
            //ugly
            if($target == ThemeRegistry::WEBSOURCE) {
                continue;
            }
            //retrieve all other value
            $returnValue[$target] = $value;

            // adapt path for all theme
            $returnValue[$target]['available'] = array();
            foreach ($value['available'] as $theme) {
                $returnValue[$target]['available'][] = $this->updatePath($theme);
            }

            $returnValue[$target]['base'] = $this->getResolvedBase($target);
        }
        return $returnValue;
    }
public function getAvailableThemes ( ) { $ returnValue = array ( ) ; foreach ( $ this -> getMap ( ) as $ target => $ value ) { //ugly if ( $ target == ThemeRegistry :: WEBSOURCE ) { continue ; } //retrieve all other value $ returnValue [ $ target ] = $ value ; // adapt path for all theme $ returnValue [ $ target ] [ 'available' ] = array ( ) ; foreach ( $ value [ 'available' ] as $ theme ) { $ returnValue [ $ target ] [ 'available' ] [ ] = $ this -> updatePath ( $ theme ) ; } $ returnValue [ $ target ] [ 'base' ] = $ this -> getResolvedBase ( $ target ) ; } return $ returnValue ; }
Get list of available theme
The available themes have their URL and paths resolved

@author Lionel Lecaque, lionel@taotesting.com
Get list of available theme The available themes have their URL and paths resolved