protected function getDriver($typeClass)
    {
        $bestDriver = false;
        $numberOfParts = 0;
        
        foreach ($this->definitions as $selector => $driver) {
            if ($selector === '*' || $selector === $typeClass) {
                $bestDriver = $driver;
                $numberOfParts = $this->countNumberOfParts($selector);
            } else if (substr($selector, -1) === '*') {
                $selectorWithoutWildcard = substr($selector, 0, -1);
                
                if (strpos($selector, $selectorWithoutWildcard) === 0 || $numberOfParts < $this->countNumberOfParts($selector)) {
                    $bestDriver = $driver;
                    $numberOfParts = $this->countNumberOfParts($selector);
                }
            }
        }
        
        return $bestDriver;
    }
protected function getDriver($typeClass)
    {
        $bestDriver = false;
        $numberOfParts = 0;
        
        foreach ($this->definitions as $selector => $driver) {
            if ($selector === '*' || $selector === $typeClass) {
                $bestDriver = $driver;
                $numberOfParts = $this->countNumberOfParts($selector);
            } else if (substr($selector, -1) === '*') {
                $selectorWithoutWildcard = substr($selector, 0, -1);
                
                if (strpos($selector, $selectorWithoutWildcard) === 0 || $numberOfParts < $this->countNumberOfParts($selector)) {
                    $bestDriver = $driver;
                    $numberOfParts = $this->countNumberOfParts($selector);
                }
            }
        }
        
        return $bestDriver;
    }
protected function getDriver ( $ typeClass ) { $ bestDriver = false ; $ numberOfParts = 0 ; foreach ( $ this -> definitions as $ selector => $ driver ) { if ( $ selector === '*' || $ selector === $ typeClass ) { $ bestDriver = $ driver ; $ numberOfParts = $ this -> countNumberOfParts ( $ selector ) ; } else if ( substr ( $ selector , - 1 ) === '*' ) { $ selectorWithoutWildcard = substr ( $ selector , 0 , - 1 ) ; if ( strpos ( $ selector , $ selectorWithoutWildcard ) === 0 || $ numberOfParts < $ this -> countNumberOfParts ( $ selector ) ) { $ bestDriver = $ driver ; $ numberOfParts = $ this -> countNumberOfParts ( $ selector ) ; } } } return $ bestDriver ; }
Returns the driver for the given type class or false if no
driver is available.

@access protected
@param string $typeClass
@return false|string
Returns the driver for the given type class or false if no driver is available .