2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Properties class for the import plug-in
8 if (! defined('PHPMYADMIN')) {
12 /* This class extends the PluginPropertyItem class */
13 require_once 'PluginPropertyItem.class.php';
16 * Defines possible options and getters and setters for them.
20 class ImportPluginProperties
extends PluginPropertyItem
39 * @var OptionsPropertyRootGroup
48 private $_optionsText;
58 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
62 * Returns the property item type of either an instance of
63 * - OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or
64 * - OptionsPropertyGroup ( "root", "main" or "subgroup" )
65 * - PluginPropertyItem ( "export", "import", "transformations" )
69 public function getItemType()
79 public function getText()
87 * @param string $text text
91 public function setText($text)
101 public function getExtension()
103 return $this->_extension
;
109 * @param string $extension extension
113 public function setExtension($extension)
115 $this->_extension
= $extension;
121 * @return OptionsPropertyRootGroup
123 public function getOptions()
125 return $this->_options
;
131 * @param OptionsPropertyRootGroup $options options
135 public function setOptions($options)
137 $this->_options
= $options;
141 * Gets the options text
145 public function getOptionsText()
147 return $this->_optionsText
;
151 * Sets the options text
153 * @param string $optionsText options text
157 public function setOptionsText($optionsText)
159 $this->_optionsText
= $optionsText;
167 public function getMimeType()
169 return $this->_mimeType
;
175 * @param string $mimeType MIME type
179 public function setMimeType($mimeType)
181 $this->_mimeType
= $mimeType;