Get the name of the Extension the manifest describes.

@access public
@author Jerome Bogaerts <jerome@taotesting.com>
@return string
190937
public function getName()
    {
        $returnValue = (string) '';

        if (!empty($this->name)){
        	$returnValue = $this->name;
        }
        else{
        	$returnValue = null;
        }

        return (string) $returnValue;
    }
960097
@Exported
    public String getLongName() {
        String name = manifest.getMainAttributes().getValue("Long-Name");
        if(name!=null)      return name;
        return shortName;
    }
392165
public function getRootName(): string
    {
        $className = \get_class($this);
        if ('Bundle\\DependencyInjection\\Configuration' !== mb_substr($className, -40)) {
            throw new BadMethodCallException('This extension does not follow the naming convention; you must overwrite the getRootName() method.');
        }
        $classBaseName = mb_substr($className, 0, mb_strlen($className) - 40);

        return mb_strtolower(str_replace('\\', '_', $classBaseName));
    }
132700
public function nameSuffix()
    {
        $atoms = $this->nameAtoms();
        if (count($atoms) > 1) {
            array_shift($atoms);

            return implode(static::EXTENSION_SEPARATOR, $atoms);
        }

        return null;
    }
883037
protected function determineExtensionName()
    {
        $reflectionClass   = new \ReflectionClass($this);
        $componentFilePath = dirname($reflectionClass->getFileName());

        // If the file path is invalid
        $extensionDirPosition = strpos($componentFilePath, 'ext'.DIRECTORY_SEPARATOR);
        if ($extensionDirPosition === false) {
            throw new \RuntimeException('Invalid component path', 1481360976);
        }

        // Extract the extension key
        $componentPath = explode(
            DIRECTORY_SEPARATOR,
            substr($componentFilePath, $extensionDirPosition + strlen('ext'.DIRECTORY_SEPARATOR))
        );
        $extensionKey  = array_shift($componentPath);

        // If the extension is unknown
        if (!in_array($extensionKey, ExtensionManagementUtility::getLoadedExtensionListArray())) {
            throw new \RuntimeException(sprintf('Unknown extension key "%s"', $extensionKey), 1481361198);
        }

        // Register the extension key & name
        $this->extensionKey  = $extensionKey;
        $this->extensionName = GeneralUtility::underscoredToUpperCamelCase($extensionKey);

        // Process the component path
        if (array_shift($componentPath) !== 'Components') {
            throw new \RuntimeException('Invalid component path', 1481360976);
        }
        $this->componentPath = array_map([static::class, 'expandComponentName'], $componentPath);
    }
485239
public function getFilename()
	{
		$filename = $this->getDisplayName();
		if ($this->getExtension() != '')
		{
			$filename .= '.' . $this->getExtension();
		}
		return $filename;
	}
1071825
public function name() {
		$res = $this->_match;
		$count = count($res);

		if (empty($this->_stub['name'])) {
			return '';
		}
		$name = $this->_stub['name'];

		for ($i = 1; $i <= $count; $i++) {
			$name = str_ireplace('$' . $i, $res[$i - 1], $name);
		}
		return $name;
	}
612380
private function getFullName()
    {
        $extension = $this->getExtension();
        return date('Y') . DIRECTORY_SEPARATOR . date('md') . DIRECTORY_SEPARATOR . date('Ymdhis') . rand(100, 999) . '.' . $extension;
    }
667632
public function getExtension() {
		$filename = $this->getFilename();
		$pos = strrpos($filename, '.');
		if($pos === false || $pos === 0 || $pos >= strlen($filename) - 1) {
			return null;
		}
		return substr($filename, $pos + 1);
	}
281334
public function getExtension(
        /*# string */ $extensionName
    )/*# : ExtensionAbstract */ {
        if (!$this->hasExtension($extensionName)) {
            $this->addExtension(new $extensionName);
        }
        return $this->extensions[$extensionName];
    }
203037
public function getBundleName() {
        return implode('-', array_filter(array_slice(preg_split('/\\\\/', get_class($this)), 0, -1), function ($name) {
            return preg_match('/[a-z0-9_-]+/', $name) && !in_array($name, ['app', 'widgets']);
        }));
    }
1172830
protected function help()
    {
        $out = [];

        if (isset($this->manifest->help) && is_string($this->manifest->help)) {
            return (string) $this->manifest->help;
        }

        if (empty($this->manifest->help->file)) {
            $files = $this->helpNames;
        } else {
            $files = $this->manifest->help->file;
        }

        foreach ((array) $files as $file) {
            $file = $this->path($file);

            if (file_exists($file) && is_file($file) && is_readable($file)) {
                $out[strtolower($file)] = file_get_contents($file);
            }
        }

        return implode("\n\n", $out);
    }
1186699
public function getIndexedFilename() {
		$extension 	= strtolower($this->getMimeType());
		$extension 	= explode('/', $extension);
		$extension 	= $extension[1];

    	return $this->_uniqueName . $this->getImageIndex() . '.' . $extension;
    }
389318
public function get_extension()
	{
		if ($this->link !== null)
		{
			$url = SimplePie_Misc::parse_url($this->link);
			if ($url['path'] !== '')
			{
				return pathinfo($url['path'], PATHINFO_EXTENSION);
			}
		}
		return null;
	}
1171559
protected function getExtensionsRegex()
    {
        $regex = '';
        $last = count($this->extensions) - 1;
        foreach ($this->extensions as $index => $ext) {
            $regex .= '\.'.$ext.'$';
            $regex .= $index !== $last ? '|' : '';
        }

        return '('.$regex.')';
    }
816250
public function getName()
    {
        if (!isset($this->name)) {
            BrowserDetector::detect($this, $this->getUserAgent());
        }

        return $this->name;
    }
895566
private function getShownExtension()
    {
        if($this->hasRequestParameter('shownExtension')){
            $shownExtension = $this->getRequestParameter('shownExtension');
            if(strlen(trim($shownExtension)) > 0){
                $extension = $this->getExtension($shownExtension);
                return $extension->getName();
            }
        }
        return null;
    }