public function findByDirName($dirName)
    {
        $installed = $this->getInstalled();
        foreach ($installed as $code => $name) {
            if ($dirName == $name) {
                return $code;
            }
        }

        return null;
    }
public function findByDirName($dirName)
    {
        $installed = $this->getInstalled();
        foreach ($installed as $code => $name) {
            if ($dirName == $name) {
                return $code;
            }
        }

        return null;
    }
public function findByDirName ( $ dirName ) { $ installed = $ this -> getInstalled ( ) ; foreach ( $ installed as $ code => $ name ) { if ( $ dirName == $ name ) { return $ code ; } } return null ; }
Returns an installed theme's code from it's dirname.
@return string
Returns an installed theme s code from it s dirname .