AdminCTTopMenuItemController::__construct PHP Метод

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

AdminCTTopMenuItemController constructor.
public __construct ( )
    public function __construct()
    {
        Shop::addTableAssociation('ct_top_menu_item', array('type' => 'shop'));
        parent::__construct();
        $this->className = 'CTTopMenuItem';
        $this->table = 'ct_top_menu_item';
        $this->identifier = 'id_ct_top_menu_item';
        $this->position_identifier = 'id_ct_top_menu_item';
        $this->lang = true;
        $this->bootstrap = true;
        $this->_defaultOrderBy = 'id_ct_top_menu_item';
        $this->_defaultOrderWay = 'asc';
        $this->menuItemTypes = array(CTTopMenuItem::TYPE_CUSTOM_LINK => array('name' => $this->l('Custom Link')), CTTopMenuItem::TYPE_PRODUCT => array('name' => $this->l('Product Link'), 'entity_name' => $this->l('Product'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_CATEGORY => array('name' => $this->l('Category Link'), 'entity_name' => $this->l('Category'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_CATEGORY_TREE => array('name' => $this->l('Category Tree'), 'entity_name' => $this->l('Category'), 'fields' => array('entity_id' => true, 'tree_max_depth' => true)), CTTopMenuItem::TYPE_CATEGORY_FLAT_TREE => array('name' => $this->l('Category Flat Tree'), 'entity_name' => $this->l('Category'), 'fields' => array('entity_id' => true, 'tree_max_depth' => true)), CTTopMenuItem::TYPE_CMS => array('name' => $this->l('CMS Link'), 'entity_name' => $this->l('CMS'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_CMS_CATEGORY => array('name' => $this->l('CMS Category Link'), 'entity_name' => $this->l('CMS Category'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_CMS_CATEGORY_TREE => array('name' => $this->l('CMS Category Tree'), 'entity_name' => $this->l('CMS Category'), 'fields' => array('entity_id' => true, 'tree_max_depth' => true)), CTTopMenuItem::TYPE_MANUFACTURER => array('name' => $this->l('Manufacturer Link'), 'entity_name' => $this->l('Manufacturer'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_MANUFACTURER_LIST => array('name' => $this->l('Manufacturer List')), CTTopMenuItem::TYPE_SUPPLIER => array('name' => $this->l('Supplier Link'), 'entity_name' => $this->l('Supplier'), 'fields' => array('entity_id' => true)), CTTopMenuItem::TYPE_SUPPLIER_LIST => array('name' => $this->l('Supplier list')));
        // Write ID column so we can use this array as option list in fields form
        foreach ($this->menuItemTypes as $menuItemTypeKey => &$menuItemType) {
            $menuItemType['id'] = $menuItemTypeKey;
        }
    }