• File: Exports.php
  • Full Path: /var/www/crm_set/modules/exports/controllers/Exports.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 749 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

/**
 * CSV Export Controller
 * @property CSVExport $CSVExport
 * @property Exports_module $exports_module
 */
class Exports extends AdminController
{
    public function __construct()
    {
        parent::__construct();
        if (!is_admin()) {
            access_denied('admin');
        }
        $this->load->library(EXPORTS_MODULE_NAME . '/exports_module');
    }

    public function index()
    {
        if ($this->input->post()) {
            $this->exports_module->export($this->input->post());
        }

        $data['features'] = $this->exports_module->getFeaturesWithNames();
        $data['title'] = _l('csv_exports');
        $this->load->view(EXPORTS_MODULE_NAME . '/manage', $data);
    }
}