예제 #1
0
 function getOptions()
 {
     require_once COM_FABRIK_FRONTEND . DS . 'helpers' . DS . 'image.php';
     $imageLibs = imageHelper::getLibs();
     if (empty($imageLibs)) {
         return JHTML::_('select.option', JText::_('NO MAGE LIBRARY FOUND'));
     }
     return $imageLibs;
 }
예제 #2
0
 function fetchElement($name, $value, &$node, $control_name)
 {
     require_once COM_FABRIK_FRONTEND . DS . 'helpers' . DS . 'image.php';
     $imageLibs = imageHelper::getLibs();
     if (empty($imageLibs)) {
         return JText::_('NO MAGE LIBRARY FOUND');
     }
     $fullName = ElementHelper::getFullName($this, $control_name, $name);
     return JHTML::_('select.genericlist', $imageLibs, $fullName, 'class="inputbox" size="1" ', 'value', 'text', $value);
 }