properties; } /** * Sets the export plugins properties and is implemented by * each schema export plugin * * @return void */ abstract protected function setProperties(); /** * Exports the schema into the specified format. * * @param string $db database name * * @return bool Whether it succeeded */ abstract public 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('show_color', __('Show color')); $propertyGroup->addProperty($leaf); $leaf = new BoolPropertyItem('show_keys', __('Only show keys')); $propertyGroup->addProperty($leaf); } /** * Returns the array of paper sizes * * @return array array of paper sizes */ protected function getPaperSizeArray() { $ret = []; foreach ($GLOBALS['cfg']['PDFPageSizes'] as $val) { $ret[$val] = $val; } return $ret; } }