AdminCTTopMenuItemController::renderList PHP Метод

renderList() публичный Метод

Position column is only visible in the shop context
public renderList ( ) : false | string
Результат false | string
    public function renderList()
    {
        $this->addRowAction('edit');
        $this->addRowAction('delete');
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
        $this->fields_list = array('id_ct_top_menu_item' => array('title' => $this->l('Item ID')), 'type' => array('title' => $this->l('Item Type')), 'entity_id' => array('title' => $this->l('Entity ID')), 'icon' => array('title' => $this->l('Icon')), 'class' => array('title' => $this->l('CSS Class')), 'name' => array('title' => $this->l('Custom Name')), 'title' => array('title' => $this->l('Custom Title')), 'url' => array('title' => $this->l('Custom URL')), 'no_follow' => array('title' => $this->l('No Follow'), 'align' => 'center', 'active' => 'no_follow', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => false), 'active' => array('title' => $this->l('Active'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => false));
        if (Shop::getContext() != Shop::CONTEXT_ALL && Shop::getContext() != Shop::CONTEXT_GROUP) {
            $id_shop = Shop::getContextShopID();
            $this->_defaultOrderBy = 'position';
            $this->_select = 'shop.position as position';
            $this->_join = 'LEFT JOIN ' . _DB_PREFIX_ . 'ct_top_menu_item_shop shop
             ON a.id_ct_top_menu_item = shop.id_ct_top_menu_item AND shop.id_shop = ' . (int) $id_shop;
            $this->fields_list['position'] = array('title' => $this->l('Position'), 'filter_key' => 'shop!position', 'align' => 'center', 'class' => 'fixed-width-sm', 'position' => 'position');
            $this->informations[] = $this->l('If you would like to order menu items, sort the list by position.');
        } else {
            $this->informations[] = $this->l('If you would like to order menu items, select shop context.');
        }
        return parent::renderList();
    }