english/libraries/joomla/application/component/view.php
/**
	 * Create the filename for a resource
	 *
	 * @param   string  $type   The resource type to create the filename for
	 * @param   array   $parts  An associative array of filename information
	 *
	 * @return  string  The filename
	 *
	 * @since   11.1
	 */
Create the filename for a resource
@param   string  $type   The resource type to create the filename for
@param   array   $parts  An associative array of filename information

@return  string  The filename


Create the filename for a resource @param string $type The resource type to create the filename for @param array $parts An associative array of filename information @return string The filename
protected function _createFileName($type, $parts = array())
	{
		$filename = '';
		switch($type)
		{
			case 'template' :
				$filename = strtolower($parts['name']).'.'.$this->_layoutExt;
				break;
			default :
				$filename = strtolower($parts['name']).'.php';
				break;
		}
		return $filename;
	}
protected function _createFileName ( $ type , $ parts = array ( ) ) { $ filename = '' ; switch ( $ type ) { case 'template' : $ filename = strtolower ( $ parts [ 'name' ] ) . '.' . $ this -> _layoutExt ; break ; default : $ filename = strtolower ( $ parts [ 'name' ] ) . '.php' ; break ; } return $ filename ; }
Create the filename for a resource
 @param   string  $type   The resource type to create the filename for
 @param   array   $parts  An associative array of filename information
Create the filename for a resource @param string $type The resource type to create the filename for @param array $parts An associative array of filename information