function order($option, $pkg, $ids, $inc) { global $database; $database = JFactory::getDBO(); $row = new facileFormsForms($database); $row->load($ids[0]); $row->move($inc, "package=".$database->Quote($pkg)."" ); JFactory::getApplication()->redirect("index.php?option=$option&act=manageforms&pkg=$pkg"); } // order
static function order($option, $pkg, $ids, $inc) { global $database; JArrayHelper::toInteger($ids); $database = JFactory::getDBO(); $row = new facileFormsForms($database); $row->load($ids[0]); $row->move($inc, "package=" . $database->Quote($pkg) . ""); JFactory::getApplication()->redirect("index.php?option={$option}&act=manageforms&pkg={$pkg}"); }