public function getTemplates($dc)
	{
		$prefix = '';

		if($dc instanceof \MultiColumnWizard)
		{
			$dc->field = $dc->strField;
			$dc->table = $dc->strTable;
		}

		if(isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templatePrefix']))
		{
			$prefix = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templatePrefix'];
		}

		$key = null;

		if(isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templateThemeId']))
		{
			$key = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templateThemeId'];
		}

		$key = $key == '' ? null : $dc->activeRecord->$key;

		return $this->getTemplateGroup($prefix, $key);
	}
public function getTemplates($dc)
	{
		$prefix = '';

		if($dc instanceof \MultiColumnWizard)
		{
			$dc->field = $dc->strField;
			$dc->table = $dc->strTable;
		}

		if(isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templatePrefix']))
		{
			$prefix = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templatePrefix'];
		}

		$key = null;

		if(isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templateThemeId']))
		{
			$key = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['eval']['templateThemeId'];
		}

		$key = $key == '' ? null : $dc->activeRecord->$key;

		return $this->getTemplateGroup($prefix, $key);
	}
public function getTemplates ( $ dc ) { $ prefix = '' ; if ( $ dc instanceof \ MultiColumnWizard ) { $ dc -> field = $ dc -> strField ; $ dc -> table = $ dc -> strTable ; } if ( isset ( $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'eval' ] [ 'templatePrefix' ] ) ) { $ prefix = $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'eval' ] [ 'templatePrefix' ] ; } $ key = null ; if ( isset ( $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'eval' ] [ 'templateThemeId' ] ) ) { $ key = $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'eval' ] [ 'templateThemeId' ] ; } $ key = $ key == '' ? null : $ dc -> activeRecord -> $ key ; return $ this -> getTemplateGroup ( $ prefix , $ key ) ; }
get all templates. A templatePrefix can be defined using eval.templatePrefix

@param $dc

@return array
get all templates . A templatePrefix can be defined using eval . templatePrefix