AAAAhome/academiac/www/administrator/components/com_csvi/models/fields/csvioperations.php000060400000003071151467004200025364 0ustar00input; $jform = $jinput->get('jform', array(), 'array'); $trans = array(); if (!empty($jform) && isset($jform['options'])) { $db = JFactory::getDbo(); $q = "SELECT t.template_type_name FROM `#__csvi_template_types` AS t WHERE t.template_type = ".$db->Quote($jform['options']['action'])." AND t.component = ".$db->Quote($jform['options']['component']); $db->setQuery($q); $types = $db->loadResultArray(); // Get translations foreach ($types as $type) { $trans[$type] = JText::_('COM_CSVI_'.strtoupper($type)); } } else { $trans = parent::getOptions(); } return $trans; } } ?>