PMA\libraries\plugins\export\ExportMediawiki::setProperties PHP Метод

setProperties() защищенный Метод

Sets the export MediaWiki properties
protected setProperties ( ) : void
Результат void
    protected function setProperties()
    {
        $exportPluginProperties = new ExportPluginProperties();
        $exportPluginProperties->setText('MediaWiki Table');
        $exportPluginProperties->setExtension('mediawiki');
        $exportPluginProperties->setMimeType('text/plain');
        $exportPluginProperties->setOptionsText(__('Options'));
        // create the root group that will be the options field for
        // $exportPluginProperties
        // this will be shown as "Format specific options"
        $exportSpecificOptions = new OptionsPropertyRootGroup("Format Specific Options");
        // general options main group
        $generalOptions = new OptionsPropertyMainGroup("general_opts", __('Dump table'));
        // what to dump (structure/data/both)
        $subgroup = new OptionsPropertySubgroup("dump_table", __("Dump table"));
        $leaf = new RadioPropertyItem('structure_or_data');
        $leaf->setValues(array('structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data')));
        $subgroup->setSubgroupHeader($leaf);
        $generalOptions->addProperty($subgroup);
        // export table name
        $leaf = new BoolPropertyItem("caption", __('Export table names'));
        $generalOptions->addProperty($leaf);
        // export table headers
        $leaf = new BoolPropertyItem("headers", __('Export table headers'));
        $generalOptions->addProperty($leaf);
        //add the main group to the root group
        $exportSpecificOptions->addProperty($generalOptions);
        // set the options for the export plugin property item
        $exportPluginProperties->setOptions($exportSpecificOptions);
        $this->properties = $exportPluginProperties;
    }