Standard/TeamSpeak/TeamSpeak3/TeamSpeak3.php
protected static function getAdapterName($name)
  {
    $path = self::getFilePath(__NAMESPACE__.'\\Adapter\\');
    $scan = scandir($path);

    foreach($scan as $node)
    {
      $file = Helper\String::factory($node)->toLower();

      if($file->startsWith($name) && $file->endsWith(".php"))
      {
        return __NAMESPACE__.'\\Adapter\\' . str_replace(".php", "", $node);
      }
    }

    throw new Adapter\Exception("adapter '" . $name . "' does not exist");
  }
protected static function getAdapterName($name)
  {
    $path = self::getFilePath(__NAMESPACE__.'\\Adapter\\');
    $scan = scandir($path);

    foreach($scan as $node)
    {
      $file = Helper\String::factory($node)->toLower();

      if($file->startsWith($name) && $file->endsWith(".php"))
      {
        return __NAMESPACE__.'\\Adapter\\' . str_replace(".php", "", $node);
      }
    }

    throw new Adapter\Exception("adapter '" . $name . "' does not exist");
  }
Returns the name of an adapter class by $name.

@param  string $name
@param  string $namespace
@throws Adapter\Exception
@return string