_getStringCustoms(), $this->name, 'class="inputbox" ', 'value', 'text', $this->value, $this->id); } private function _getStringCustoms() { $cModel = VmModel::getModel('custom'); $cModel->_noLimit = true; $q = 'SELECT `virtuemart_custom_id` AS value, custom_title AS text FROM `#__virtuemart_customs` WHERE custom_parent_id="0" AND field_type = "S" '; $q .= ' AND `published`=1'; $db = JFactory::getDBO(); $db->setQuery ($q); $l = $db->loadObjectList (); $eOpt = JHtml::_('select.option', '0', vmText::_('COM_VIRTUEMART_NONE')); array_unshift($l,$eOpt); return $l; } }