Update website
This commit is contained in:
parent
0a686aeb9a
commit
c4ffa0f6ee
4360 changed files with 1727 additions and 718385 deletions
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
|
||||
|
||||
/**
|
||||
* Group property item class of type main
|
||||
*/
|
||||
class OptionsPropertyMainGroup extends OptionsPropertyGroup
|
||||
{
|
||||
/**
|
||||
* 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 'main';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
|
||||
|
||||
/**
|
||||
* Group property item class of type root
|
||||
*/
|
||||
class OptionsPropertyRootGroup extends OptionsPropertyGroup
|
||||
{
|
||||
/**
|
||||
* 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 'root';
|
||||
}
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
|
||||
use PhpMyAdmin\Properties\PropertyItem;
|
||||
|
||||
/**
|
||||
* Group property item class of type subgroup
|
||||
*/
|
||||
class OptionsPropertySubgroup extends OptionsPropertyGroup
|
||||
{
|
||||
/**
|
||||
* Subgroup Header
|
||||
*
|
||||
* @var PropertyItem|null
|
||||
*/
|
||||
private $subgroupHeader;
|
||||
/* ~~~~~~~~~~~~~~~~~~~~ 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 'subgroup';
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the subgroup header
|
||||
*
|
||||
* @return PropertyItem|null
|
||||
*/
|
||||
public function getSubgroupHeader()
|
||||
{
|
||||
return $this->subgroupHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the subgroup header
|
||||
*
|
||||
* @param PropertyItem $subgroupHeader subgroup header
|
||||
*/
|
||||
public function setSubgroupHeader($subgroupHeader): void
|
||||
{
|
||||
$this->subgroupHeader = $subgroupHeader;
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type bool
|
||||
*/
|
||||
class BoolPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'bool';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type doc
|
||||
*/
|
||||
class DocPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'doc';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type hidden
|
||||
*/
|
||||
class HiddenPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'hidden';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type messageOnly
|
||||
*/
|
||||
class MessageOnlyPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'messageOnly';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type number
|
||||
*/
|
||||
class NumberPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'number';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type radio
|
||||
*/
|
||||
class RadioPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'radio';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type select
|
||||
*/
|
||||
class SelectPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'select';
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
|
||||
|
||||
/**
|
||||
* Single property item class of type text
|
||||
*/
|
||||
class TextPropertyItem extends OptionsPropertyOneItem
|
||||
{
|
||||
/**
|
||||
* 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 'text';
|
||||
}
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Superclass for the Property Group classes.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options;
|
||||
|
||||
use Countable;
|
||||
|
||||
use function array_diff;
|
||||
use function count;
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
* Parents group property items and provides methods to manage groups of
|
||||
* properties.
|
||||
*
|
||||
* @todo modify descriptions if needed, when the options are integrated
|
||||
*/
|
||||
abstract class OptionsPropertyGroup extends OptionsPropertyItem implements Countable
|
||||
{
|
||||
/**
|
||||
* Holds a group of properties (PhpMyAdmin\Properties\Options\OptionsPropertyItem instances)
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $properties;
|
||||
|
||||
/**
|
||||
* Adds a property to the group of properties
|
||||
*
|
||||
* @param OptionsPropertyItem $property the property instance to be added
|
||||
* to the group
|
||||
*/
|
||||
public function addProperty($property): void
|
||||
{
|
||||
if (! $this->getProperties() == null && in_array($property, $this->getProperties(), true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->properties[] = $property;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a property from the group of properties
|
||||
*
|
||||
* @param OptionsPropertyItem $property the property instance to be removed
|
||||
* from the group
|
||||
*/
|
||||
public function removeProperty($property): void
|
||||
{
|
||||
$this->properties = array_diff(
|
||||
$this->getProperties(),
|
||||
[$property]
|
||||
);
|
||||
}
|
||||
|
||||
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
|
||||
|
||||
/**
|
||||
* Gets the instance of the class
|
||||
*
|
||||
* @return OptionsPropertyGroup
|
||||
*/
|
||||
public function getGroup()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the group of properties
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getProperties()
|
||||
{
|
||||
return $this->properties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the number of properties
|
||||
*/
|
||||
public function getNrOfProperties(): int
|
||||
{
|
||||
if ($this->properties === null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return count($this->properties);
|
||||
}
|
||||
|
||||
/**
|
||||
* Countable interface implementation.
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return $this->getNrOfProperties();
|
||||
}
|
||||
}
|
|
@ -1,127 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* The top-level class of the "Options" subtree of the object-oriented
|
||||
* properties system (the other subtree is "Plugin").
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options;
|
||||
|
||||
use PhpMyAdmin\Properties\PropertyItem;
|
||||
|
||||
/**
|
||||
* Superclass for
|
||||
* - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem and
|
||||
* - OptionsProperty Group
|
||||
*/
|
||||
abstract class OptionsPropertyItem extends PropertyItem
|
||||
{
|
||||
/**
|
||||
* Name
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* Text
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
private $text;
|
||||
/**
|
||||
* What to force
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
private $force;
|
||||
|
||||
/**
|
||||
* @param string $name Item name
|
||||
* @param string $text Item text
|
||||
*/
|
||||
public function __construct($name = null, $text = null)
|
||||
{
|
||||
if ($name) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
if (! $text) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->text = $text;
|
||||
}
|
||||
|
||||
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
|
||||
|
||||
/**
|
||||
* Gets the name
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name
|
||||
*
|
||||
* @param string $name name
|
||||
*/
|
||||
public function setName($name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the text
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getText()
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the text
|
||||
*
|
||||
* @param string $text text
|
||||
*/
|
||||
public function setText($text): void
|
||||
{
|
||||
$this->text = $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the force parameter
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getForce()
|
||||
{
|
||||
return $this->force;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the force parameter
|
||||
*
|
||||
* @param string $force force parameter
|
||||
*/
|
||||
public function setForce($force): void
|
||||
{
|
||||
$this->force = $force;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the property type ( either "options", or "plugin" ).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPropertyType()
|
||||
{
|
||||
return 'options';
|
||||
}
|
||||
}
|
|
@ -1,147 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Superclass for the single Property Item classes.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties\Options;
|
||||
|
||||
/**
|
||||
* Parents only single property items (not groups).
|
||||
* Defines possible options and getters and setters for them.
|
||||
*/
|
||||
abstract class OptionsPropertyOneItem extends OptionsPropertyItem
|
||||
{
|
||||
/**
|
||||
* Whether to force or not
|
||||
*
|
||||
* @var bool|string
|
||||
*/
|
||||
private $forceOne;
|
||||
/**
|
||||
* Values
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $values;
|
||||
/**
|
||||
* Doc
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
private $doc;
|
||||
/**
|
||||
* Length
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $len;
|
||||
/**
|
||||
* Size
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $size;
|
||||
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
|
||||
|
||||
/**
|
||||
* Gets the force parameter
|
||||
*
|
||||
* @return bool|string
|
||||
*/
|
||||
public function getForce()
|
||||
{
|
||||
return $this->forceOne;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the force parameter
|
||||
*
|
||||
* @param bool|string $force force parameter
|
||||
*/
|
||||
public function setForce($force): void
|
||||
{
|
||||
$this->forceOne = $force;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the values
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getValues()
|
||||
{
|
||||
return $this->values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the values
|
||||
*
|
||||
* @param array $values values
|
||||
*/
|
||||
public function setValues(array $values): void
|
||||
{
|
||||
$this->values = $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets MySQL documentation pointer
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function getDoc()
|
||||
{
|
||||
return $this->doc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the doc
|
||||
*
|
||||
* @param string|array $doc MySQL documentation pointer
|
||||
*/
|
||||
public function setDoc($doc): void
|
||||
{
|
||||
$this->doc = $doc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the length
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getLen()
|
||||
{
|
||||
return $this->len;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the length
|
||||
*
|
||||
* @param int $len length
|
||||
*/
|
||||
public function setLen($len): void
|
||||
{
|
||||
$this->len = $len;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSize()
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the size
|
||||
*
|
||||
* @param int $size size
|
||||
*/
|
||||
public function setSize($size): void
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
<?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 each plugin has to be saved as a file
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $forceFile = false;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function getForceFile(): bool
|
||||
{
|
||||
return $this->forceFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the force file parameter
|
||||
*/
|
||||
public function setForceFile(bool $forceFile): void
|
||||
{
|
||||
$this->forceFile = $forceFile;
|
||||
}
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
<?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';
|
||||
}
|
||||
|
||||
public function getForceFile(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,170 +0,0 @@
|
|||
<?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|null
|
||||
*/
|
||||
private $options = null;
|
||||
/**
|
||||
* Options text
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $optionsText;
|
||||
/**
|
||||
* MIME Type
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $mimeType;
|
||||
|
||||
/**
|
||||
* Gets the text
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getText()
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the text
|
||||
*
|
||||
* @param string $text text
|
||||
*/
|
||||
public function setText($text): void
|
||||
{
|
||||
$this->text = $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the extension
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExtension()
|
||||
{
|
||||
return $this->extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the extension
|
||||
*
|
||||
* @param string $extension extension
|
||||
*/
|
||||
public function setExtension($extension): void
|
||||
{
|
||||
$this->extension = $extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the options
|
||||
*
|
||||
* @return OptionsPropertyRootGroup|null
|
||||
*/
|
||||
public function getOptions()
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the options
|
||||
*
|
||||
* @param OptionsPropertyRootGroup $options options
|
||||
*/
|
||||
public function setOptions($options): void
|
||||
{
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the options text
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOptionsText()
|
||||
{
|
||||
return $this->optionsText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the options text
|
||||
*
|
||||
* @param string $optionsText optionsText
|
||||
*/
|
||||
public function setOptionsText($optionsText): void
|
||||
{
|
||||
$this->optionsText = $optionsText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the MIME type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMimeType()
|
||||
{
|
||||
return $this->mimeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the MIME type
|
||||
*
|
||||
* @param string $mimeType MIME type
|
||||
*/
|
||||
public function setMimeType($mimeType): void
|
||||
{
|
||||
$this->mimeType = $mimeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the property type ( either "options", or "plugin" ).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPropertyType()
|
||||
{
|
||||
return 'plugin';
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether each plugin has to be saved as a file
|
||||
*/
|
||||
public function getForceFile(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
<?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
|
||||
{
|
||||
/**
|
||||
* 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';
|
||||
}
|
||||
|
||||
public function getForceFile(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* The top-level class of the object-oriented properties system.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Properties;
|
||||
|
||||
/**
|
||||
* Provides an interface for Property classes
|
||||
*/
|
||||
abstract class PropertyItem
|
||||
{
|
||||
/**
|
||||
* Returns the property type ( either "Options", or "Plugin" ).
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
abstract public function getPropertyType();
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
abstract public function getItemType();
|
||||
|
||||
/**
|
||||
* Only overwritten in the PhpMyAdmin\Properties\Options\OptionsPropertyGroup class:
|
||||
* Used to tell whether we can use the current item as a group by calling
|
||||
* the addProperty() or removeProperty() methods, which are not available
|
||||
* for simple PhpMyAdmin\Properties\Options\OptionsPropertyOneItem subclasses.
|
||||
*
|
||||
* @return object|null
|
||||
*/
|
||||
public function getGroup()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue