public function getAvailableThemes()
{
$themes = array();
$basePath = $this->getBasePath();
$folder = @opendir($basePath);
while ($file = @readdir($folder)) {
if ($file !== '.' && $file !== '..' && $file !== '.svn' && is_dir($basePath . DIRECTORY_SEPARATOR . $file)) {
$themes[] = $file;
}
}
closedir($folder);
return $themes;
}