namespace wcf\data\contact\option;
use wcf\data\contact\recipient\ContactRecipient;
use wcf\data\custom\option\CustomOptionAction;
-use wcf\system\email\Email;
-use wcf\system\email\Mailbox;
use wcf\system\email\mime\MimePartFacade;
use wcf\system\email\mime\RecipientAwareTextMimePart;
+use wcf\system\email\Email;
+use wcf\system\email\Mailbox;
use wcf\system\language\LanguageFactory;
-use wcf\system\mail\Mail;
use wcf\system\option\ContactOptionHandler;
/**
* @package WoltLabSuite\Core\Form
*/
class ContactForm extends AbstractCaptchaForm {
+ /**
+ * sender email address
+ * @var string
+ */
public $email = '';
+ /**
+ * sender name
+ * @var string
+ */
public $name = '';
/**
}
}
+ /**
+ * @inheritDoc
+ */
public function readFormParameters() {
parent::readFormParameters();
namespace wcf\system\option;
use wcf\system\cache\builder\ContactOptionCacheBuilder;
+/**
+ * Option handler implementation for the contact form.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Option
+ */
class ContactOptionHandler extends CustomOptionHandler {
/**
* @inheritDoc
use wcf\system\exception\NotImplementedException;
use wcf\system\exception\UserInputException;
+/**
+ * Default implementation for custom option handling.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Option
+ */
abstract class CustomOptionHandler extends OptionHandler {
/**
* Gets all options and option categories from cache.
*/
protected function readCache() {
throw new NotImplementedException();
-
- $this->cachedOptions = FileOptionCacheBuilder::getInstance()->getData();
}
/**