Backend\Modules\Extensions\Actions\Modules::loadDataGridInstalled PHP Method

loadDataGridInstalled() private method

Load the data grid for installed modules.
private loadDataGridInstalled ( )
    private function loadDataGridInstalled()
    {
        // create datagrid
        $this->dataGridInstalledModules = new BackendDataGridArray($this->installedModules);
        $this->dataGridInstalledModules->setSortingColumns(array('name'));
        $this->dataGridInstalledModules->setColumnsHidden(array('installed', 'raw_name', 'cronjobs_active'));
        // check if this action is allowed
        if (BackendAuthentication::isAllowedAction('DetailModule')) {
            $this->dataGridInstalledModules->setColumnURL('name', BackendModel::createURLForAction('DetailModule') . '&module=[raw_name]');
            $this->dataGridInstalledModules->addColumn('details', null, BL::lbl('Details'), BackendModel::createURLForAction('DetailModule') . '&module=[raw_name]', BL::lbl('Details'));
        }
        // add the greyed out option to modules that have warnings
        $this->dataGridInstalledModules->addColumn('hidden');
        $this->dataGridInstalledModules->setColumnFunction(array(new BackendExtensionsModel(), 'hasModuleWarnings'), array('[raw_name]'), array('hidden'));
    }