Ejemplo n.º 1
0
 function copySelectGroup()
 {
     $db =& JFactory::getDBO();
     $db->setQuery("SELECT id, name FROM #__fabrik_groups ORDER BY name");
     $groups = $db->loadObjectList();
     $ids = JRequest::getVar('cid', array());
     $db->setQuery("SELECT id, label FROM #__fabrik_elements WHERE id IN (" . implode(', ', $ids) . ")");
     $elements = $db->loadObjectList();
     require_once JPATH_COMPONENT . DS . 'views' . DS . 'element.php';
     FabrikViewElement::setCopyElementToolbar();
     FabrikViewElement::copySelectGroup($elements, $groups);
 }