core-bundle/src/Resources/contao/library/Contao/Model.php
public static function getClassFromTable($strTable)
	{
		if (isset(static::$arrClassNames[$strTable]))
		{
			return static::$arrClassNames[$strTable];
		}

		if (isset($GLOBALS['TL_MODELS'][$strTable]))
		{
			static::$arrClassNames[$strTable] = $GLOBALS['TL_MODELS'][$strTable]; // see 4796

			return static::$arrClassNames[$strTable];
		}
		else
		{
			$arrChunks = explode('_', $strTable);

			if ($arrChunks[0] == 'tl')
			{
				array_shift($arrChunks);
			}

			static::$arrClassNames[$strTable] = implode('', array_map('ucfirst', $arrChunks)) . 'Model';

			return static::$arrClassNames[$strTable];
		}
	}
public static function getClassFromTable($strTable)
	{
		if (isset(static::$arrClassNames[$strTable]))
		{
			return static::$arrClassNames[$strTable];
		}

		if (isset($GLOBALS['TL_MODELS'][$strTable]))
		{
			static::$arrClassNames[$strTable] = $GLOBALS['TL_MODELS'][$strTable]; // see 4796

			return static::$arrClassNames[$strTable];
		}
		else
		{
			$arrChunks = explode('_', $strTable);

			if ($arrChunks[0] == 'tl')
			{
				array_shift($arrChunks);
			}

			static::$arrClassNames[$strTable] = implode('', array_map('ucfirst', $arrChunks)) . 'Model';

			return static::$arrClassNames[$strTable];
		}
	}
public static function getClassFromTable ( $ strTable ) { if ( isset ( static :: $ arrClassNames [ $ strTable ] ) ) { return static :: $ arrClassNames [ $ strTable ] ; } if ( isset ( $ GLOBALS [ 'TL_MODELS' ] [ $ strTable ] ) ) { static :: $ arrClassNames [ $ strTable ] = $ GLOBALS [ 'TL_MODELS' ] [ $ strTable ] ; // see 4796 return static :: $ arrClassNames [ $ strTable ] ; } else { $ arrChunks = explode ( '_' , $ strTable ) ; if ( $ arrChunks [ 0 ] == 'tl' ) { array_shift ( $ arrChunks ) ; } static :: $ arrClassNames [ $ strTable ] = implode ( '' , array_map ( 'ucfirst' , $ arrChunks ) ) . 'Model' ; return static :: $ arrClassNames [ $ strTable ] ; } }
Compile a Model class name from a table name (e.g. tl_form_field becomes FormFieldModel)

@param string $strTable The table name

@return string The model class name
Compile a Model class name from a table name ( e . g . tl_form_field becomes FormFieldModel )