Update website

This commit is contained in:
Guilhem Lavaux 2025-03-24 09:27:39 +01:00
parent a0b0d3dae7
commit ae7ef6ad45
3151 changed files with 566766 additions and 48 deletions

View file

@ -0,0 +1,61 @@
<?php
/**
* Properties class for the export plug-in
*/
declare(strict_types=1);
namespace PhpMyAdmin\Properties\Plugins;
/**
* Defines possible options and getters and setters for them.
*
* @todo modify descriptions if needed, when the plug-in properties are integrated
*/
class ExportPluginProperties extends PluginPropertyItem
{
/**
* Whether to force or not
*
* @var bool
*/
private $forceFile;
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Returns the property item type of either an instance of
* - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool",
* "text", "radio", etc ) or
* - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main"
* or "subgroup" )
* - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" )
*
* @return string
*/
public function getItemType()
{
return 'export';
}
/**
* Gets the force file parameter
*
* @return bool
*/
public function getForceFile()
{
return $this->forceFile;
}
/**
* Sets the force file parameter
*
* @param bool $forceFile the force file parameter
*
* @return void
*/
public function setForceFile($forceFile)
{
$this->forceFile = $forceFile;
}
}

View file

@ -0,0 +1,29 @@
<?php
/**
* Properties class for the import plug-in
*/
declare(strict_types=1);
namespace PhpMyAdmin\Properties\Plugins;
/**
* Defines possible options and getters and setters for them.
*/
class ImportPluginProperties extends PluginPropertyItem
{
/**
* Returns the property item type of either an instance of
* - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool",
* "text", "radio", etc ) or
* - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main"
* or "subgroup" )
* - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" )
*
* @return string
*/
public function getItemType()
{
return 'import';
}
}

View file

@ -0,0 +1,173 @@
<?php
/**
* The top-level class of the "Plugin" subtree of the object-oriented
* properties system (the other subtree is "Options").
*/
declare(strict_types=1);
namespace PhpMyAdmin\Properties\Plugins;
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
use PhpMyAdmin\Properties\PropertyItem;
/**
* Superclass for
* - PhpMyAdmin\Properties\Plugins\ExportPluginProperties,
* - PhpMyAdmin\Properties\Plugins\ImportPluginProperties and
* - TransformationsPluginProperties
*/
abstract class PluginPropertyItem extends PropertyItem
{
/**
* Text
*
* @var string
*/
private $text;
/**
* Extension
*
* @var string
*/
private $extension;
/**
* Options
*
* @var OptionsPropertyRootGroup
*/
private $options;
/**
* Options text
*
* @var string
*/
private $optionsText;
/**
* MIME Type
*
* @var string
*/
private $mimeType;
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the text
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Sets the text
*
* @param string $text text
*
* @return void
*/
public function setText($text)
{
$this->text = $text;
}
/**
* Gets the extension
*
* @return string
*/
public function getExtension()
{
return $this->extension;
}
/**
* Sets the extension
*
* @param string $extension extension
*
* @return void
*/
public function setExtension($extension)
{
$this->extension = $extension;
}
/**
* Gets the options
*
* @return OptionsPropertyRootGroup
*/
public function getOptions()
{
return $this->options;
}
/**
* Sets the options
*
* @param OptionsPropertyRootGroup $options options
*
* @return void
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* Gets the options text
*
* @return string
*/
public function getOptionsText()
{
return $this->optionsText;
}
/**
* Sets the options text
*
* @param string $optionsText optionsText
*
* @return void
*/
public function setOptionsText($optionsText)
{
$this->optionsText = $optionsText;
}
/**
* Gets the MIME type
*
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* Sets the MIME type
*
* @param string $mimeType MIME type
*
* @return void
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* Returns the property type ( either "options", or "plugin" ).
*
* @return string
*/
public function getPropertyType()
{
return 'plugin';
}
}

View file

@ -0,0 +1,42 @@
<?php
/**
* Properties class for the schema export plug-in
*/
declare(strict_types=1);
namespace PhpMyAdmin\Properties\Plugins;
/**
* Defines possible options and getters and setters for them.
*/
class SchemaPluginProperties extends PluginPropertyItem
{
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Returns the property item type of either an instance of
* - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool",
* "text", "radio", etc ) or
* - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main"
* or "subgroup" )
* - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export",
* "import", "transformations" )
*
* @return string
*/
public function getItemType()
{
return 'schema';
}
/**
* Gets the force file parameter
*
* @return bool
*/
public function getForceFile()
{
return true;
}
}