2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Properties class for the export 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.
18 * @todo modify descriptions if needed, when the plug-in properties are integrated
21 class ExportPluginProperties
extends PluginPropertyItem
40 * @var OptionsPropertyRootGroup
49 private $_optionsText;
59 * Whether to force or not
66 /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
70 * Returns the property item type of either an instance of
71 * - OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or
72 * - OptionsPropertyGroup ( "root", "main" or "subgroup" )
73 * - PluginPropertyItem ( "export", "import", "transformations" )
77 public function getItemType()
87 public function getText()
95 * @param string $text text
99 public function setText($text)
101 $this->_text
= $text;
109 public function getExtension()
111 return $this->_extension
;
117 * @param string $extension extension
121 public function setExtension($extension)
123 $this->_extension
= $extension;
129 * @return OptionsPropertyRootGroup
131 public function getOptions()
133 return $this->_options
;
139 * @param OptionsPropertyRootGroup $options options
143 public function setOptions($options)
145 $this->_options
= $options;
149 * Gets the options text
153 public function getOptionsText()
155 return $this->_optionsText
;
159 * Sets the options text
161 * @param string $optionsText optionsText
165 public function setOptionsText($optionsText)
167 $this->_optionsText
= $optionsText;
175 public function getMimeType()
177 return $this->_mimeType
;
183 * @param string $mimeType MIME type
187 public function setMimeType($mimeType)
189 $this->_mimeType
= $mimeType;
193 * Gets the force file parameter
197 public function getForceFile()
199 return $this->_forceFile
;
203 * Sets the force file parameter
205 * @param bool $forceFile the force file parameter
209 public function setForceFile($forceFile)
211 $this->_forceFile
= $forceFile;