function findAllSkins($dir)
 {
     foreach (scandir($dir) as $dirName) {
         if (is_dir($dir . $dirName)) {
             if (file_exists($dir . $dirName . '/skin.php')) {
                 $skin = new skin($dir . $dirName . '/skin.php', $dir, $dirName);
                 if (!isError($skin->canRun())) {
                     $this->_allFoundSkins[$skin->getID()] = $skin;
                 }
             }
         }
     }
 }