FOF30\View\DataView\Raw::hasAjaxOrderingSupport PHP Méthode

hasAjaxOrderingSupport() public méthode

If they do, it will set up the drag & drop reordering feature.
public hasAjaxOrderingSupport ( ) : boolean | array
Résultat boolean | array False if not supported, otherwise a table with necessary information (saveOrder: should you enable DnD reordering; orderingColumn: which column has the ordering information).
    public function hasAjaxOrderingSupport()
    {
        /** @var DataModel $model */
        $model = $this->getModel();
        if (!$model->hasField('ordering')) {
            return false;
        }
        $listOrder = $this->escape($model->getState('filter_order', null, 'cmd'));
        $listDirn = $this->escape($model->getState('filter_order_Dir', null, 'cmd'));
        $saveOrder = $listOrder == $model->getFieldAlias('ordering');
        if ($saveOrder) {
            $saveOrderingUrl = 'index.php?option=' . $this->container->componentName . '&view=' . $this->getName() . '&task=saveorder&format=json';
            \JHtml::_('sortablelist.sortable', 'itemsList', 'adminForm', strtolower($listDirn), $saveOrderingUrl);
        }
        return array('saveOrder' => $saveOrder, 'orderingColumn' => $model->getFieldAlias('ordering'));
    }