code/application/application.php
public function getName()
	{
		$name = $this->_name;

		if (empty($name))
		{
			$r = null;

			if (!preg_match('/J(.*)/i', get_class($this), $r))
			{
				JLog::add(JText::_('JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME'), JLog::WARNING, 'jerror');
			}

			$name = strtolower($r[1]);
		}

		return $name;
	}
public function getName()
	{
		$name = $this->_name;

		if (empty($name))
		{
			$r = null;

			if (!preg_match('/J(.*)/i', get_class($this), $r))
			{
				JLog::add(JText::_('JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME'), JLog::WARNING, 'jerror');
			}

			$name = strtolower($r[1]);
		}

		return $name;
	}
public function getName ( ) { $ name = $ this -> _name ; if ( empty ( $ name ) ) { $ r = null ; if ( ! preg_match ( '/J(.*)/i' , get_class ( $ this ) , $ r ) ) { JLog :: add ( JText :: _ ( 'JLIB_APPLICATION_ERROR_APPLICATION_GET_NAME' ) , JLog :: WARNING , 'jerror' ) ; } $ name = strtolower ( $ r [ 1 ] ) ; } return $ name ; }
Method to get the application name.

The dispatcher name is by default parsed using the classname, or it can be set
by passing a $config['name'] in the class constructor.

@return  string  The name of the dispatcher.

@since   11.1
@deprecated  4.0
Method to get the application name .