Ejemplo n.º 1
0
 public function getInput()
 {
     $db = JFactory::getDbo();
     $query = $db->getQuery(true);
     $query->select($db->qn(array('c.id', 'c.title'), array('value', 'text')))->from($db->qn('#__ksenmart_currencies', 'c'));
     $db->setQuery($query);
     $currencies = $db->loadObjectList();
     if (!$this->value) {
         $this->value = KSMPrice::_getDefaultCurrency();
     }
     return JHTML::_('select.genericlist', $currencies, $this->name, array('class' => 'sel', 'id' => $this->name, 'style' => 'width:40px;'), 'value', 'text', $this->value);
 }