properties; } /** * Sets the export plugins properties and is implemented by * each schema export plugin * * @return void */ protected abstract function setProperties(); /** * Exports the schema into the specified format. * * @param string $db database name * * @return bool Whether it succeeded */ public abstract function exportSchema($db); /** * Adds export options common to all plugins. * * @param OptionsPropertyMainGroup $propertyGroup property group * * @return void */ protected function addCommonOptions(OptionsPropertyMainGroup $propertyGroup) { $leaf = new BoolPropertyItem(); $leaf->setName('show_color'); $leaf->setText(__('Show color')); $propertyGroup->addProperty($leaf); $leaf = new BoolPropertyItem(); $leaf->setName('show_keys'); $leaf->setText(__('Only show keys')); $propertyGroup->addProperty($leaf); } }