Skip to content

Commit

Permalink
Typo3v12 Doc fixes and General ErrorCheck (#81)
Browse files Browse the repository at this point in the history
* Added maxDepth to PrintToScreenDebugger example

* Added pages to General Options index

* Added custom.css

* Remove Includes.rst.txt

* Rename headlines

* Set License file header

* Replace ; with ;

* Added ViewHelpers DocBlock

* Added ErrorCheck/Url

* Added ErrorCheck/Equals

* Fixed ErrorCheck/Url

* Added ErrorCheck/ContainsOne

* Added ErrorCheck/EqualsField

* Added ErrorCheck/NotEqualsField

* Update doctree

* Remove not needed type fall back
  • Loading branch information
tlueder authored Jul 18, 2023
1 parent 5567228 commit 029c158
Show file tree
Hide file tree
Showing 142 changed files with 2,417 additions and 165 deletions.
3 changes: 3 additions & 0 deletions .documentation/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wy-nav-content {
max-width: 1200px !important;
}
8 changes: 8 additions & 0 deletions Classes/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Controller;

use Psr\Http\Message\ResponseInterface;
Expand Down
17 changes: 14 additions & 3 deletions Classes/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Controller;

use Psr\Http\Message\ResponseInterface;
Expand Down Expand Up @@ -112,9 +120,14 @@
*General Options
*===============
*
*:ref:`Settings`
* All forms are build via TypoScript as predefined forms.
*
*All forms are build via TypoScript as predefined forms.
*:ref:`Predefined-Form`
* Predefine form settings and make them selectable in plugin record.
*
*:ref:`Step`
* Multistep forms settings
*
*.. toctree::
* :maxdepth: 2
Expand All @@ -127,8 +140,6 @@
*Documentation:End
*/
/** Documentation:Start:GeneralOptions/Settings.rst.
*
*.. include:: /Includes.rst.txt
*
*.. _settings:
*
Expand Down
8 changes: 8 additions & 0 deletions Classes/Debugger/AbstractDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Debugger;

use TYPO3\CMS\Core\SingletonInterface;
Expand Down
21 changes: 8 additions & 13 deletions Classes/Debugger/PrintToScreenDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Debugger;

use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
use Typoheads\Formhandler\Domain\Model\Config\Debugger\PrintToScreenDebuggerModel;

/**
* This script is part of the TYPO3 project - inspiring people to share!
*
* TYPO3 is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* This script is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*/

/**
* A simple debugger printing the messages on the screen.
*/
Expand Down
8 changes: 8 additions & 0 deletions Classes/Debugger/VarDumpDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Debugger;

use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
Expand Down
8 changes: 8 additions & 0 deletions Classes/Definitions/FormhandlerExtensionConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Definitions;

class FormhandlerExtensionConfig {
Expand Down
8 changes: 8 additions & 0 deletions Classes/Definitions/Severity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Definitions;

class Severity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Debugger;

use Typoheads\Formhandler\Debugger\AbstractDebugger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Debugger;

use Typoheads\Formhandler\Debugger\PrintToScreenDebugger;
Expand Down Expand Up @@ -37,6 +45,7 @@
* model = PrintToScreenDebuggerModel
* config {
* active = true
* maxDepth = 10
* severityWrap {
* 1 = <span class="level-info">|</span>
* 2 = <span class="level-warning">|</span>
Expand Down Expand Up @@ -102,7 +111,7 @@
* * - *Data Type*
* - String
* * - *Default*
* - <div style="font-weight:bold;">|</div>
* - <div style="font-weight:bold;">|</div>
*
*.. list-table::
* :align: left
Expand All @@ -120,7 +129,7 @@
* * - *Data Type*
* - String
* * - *Default*
* - <h2 style="background:#333; color:#cdcdcd; height:23px; padding:10px 7px 7px 7px; margin:0;">|</h2>
* - <h2 style="background:#333; color:#cdcdcd; height:23px; padding:10px 7px 7px 7px; margin:0;">|</h2>
*
*.. list-table::
* :align: left
Expand All @@ -138,7 +147,7 @@
* * - *Data Type*
* - String
* * - *Default*
* - <div style="border:1px solid #ccc; padding:7px; background:#dedede;">|</div>
* - <div style="border:1px solid #ccc; padding:7px; background:#dedede;">|</div>
*
*.. list-table::
* :align: left
Expand Down
8 changes: 8 additions & 0 deletions Classes/Domain/Model/Config/Debugger/VarDumpDebuggerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Debugger;

use Typoheads\Formhandler\Debugger\VarDumpDebugger;
Expand Down
8 changes: 8 additions & 0 deletions Classes/Domain/Model/Config/FieldSetModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config;

use Typoheads\Formhandler\Definitions\FormhandlerExtensionConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Finisher;

use TYPO3\CMS\Core\Http\Response;
Expand Down
8 changes: 8 additions & 0 deletions Classes/Domain/Model/Config/Finisher/MailFinisherModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Finisher;

use Typoheads\Formhandler\Finisher\MailFinisher;
Expand Down
10 changes: 9 additions & 1 deletion Classes/Domain/Model/Config/Finisher/RedirectFinisherModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Finisher;

use Typoheads\Formhandler\Finisher\RedirectFinisher;
Expand Down Expand Up @@ -74,7 +82,7 @@
* :stub-columns: 0
*
* * - **correctRedirectUrl**
* - Replaces "&amp;" with "&" in URL
* - Replaces "&amp;" with "&" in URL
* * -
* -
* * - *Mandatory*
Expand Down
10 changes: 9 additions & 1 deletion Classes/Domain/Model/Config/FormModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config;

use TYPO3\CMS\Core\Site\Entity\Site;
Expand All @@ -26,7 +34,7 @@
*Predefined Form
*===============
*
* Predefine form settings and make them selectable in plugin record.
*Predefine form settings and make them selectable in plugin record.
*
*.. list-table::
* :align: left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Interceptor;

use Typoheads\Formhandler\Interceptor\AbstractInterceptor;
Expand Down Expand Up @@ -45,9 +53,9 @@
*
*.. _initinterceptors:
*
*================
*InitInterceptors
*================
*=================
*Init Interceptors
*=================
*
*The init interceptors are called before every time the form is displayed.
*
Expand All @@ -71,9 +79,9 @@
*
*.. _saveinterceptors:
*
*================
*SaveInterceptors
*================
*=================
*Save Interceptors
*=================
*
*The save interceptors are called after all steps are validated and before the loggers and finishers are called.
*
Expand Down
8 changes: 8 additions & 0 deletions Classes/Domain/Model/Config/Logger/AbstractLoggerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Logger;

use Typoheads\Formhandler\Logger\AbstractLogger;
Expand Down
8 changes: 8 additions & 0 deletions Classes/Domain/Model/Config/Logger/DatabaseLoggerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of TYPO3 CMS-based extension "Formhandler" by JAKOTA.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*/

namespace Typoheads\Formhandler\Domain\Model\Config\Logger;

use Typoheads\Formhandler\Logger\DatabaseLogger;
Expand Down
Loading

0 comments on commit 029c158

Please sign in to comment.