forked from reinhardfuehricht/typo3-formhandler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Remove unneeded methods, move some methods to AbstractController
- Loading branch information
1 parent
c1b06c1
commit cc91f89
Showing
3 changed files
with
22 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,15 @@ | |
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * | ||
* Public License for more details. * | ||
* */ | ||
use Typoheads\Formhandler\Component\AbstractClass; | ||
|
||
/** | ||
* Abstract class for Controller Classes used by Formhandler. | ||
* | ||
* @author Reinhard Führicht <[email protected]> | ||
* @abstract | ||
*/ | ||
abstract class AbstractController extends \Typoheads\Formhandler\Component\AbstractClass | ||
abstract class AbstractController extends AbstractClass | ||
{ | ||
|
||
/** | ||
|
@@ -39,12 +40,20 @@ abstract class AbstractController extends \Typoheads\Formhandler\Component\Abstr | |
protected $predefined; | ||
|
||
/** | ||
* The path to a possibly selected translation file | ||
* The template file to be used. Only if template file was defined via plugin record | ||
* | ||
* @access protected | ||
* @var string | ||
*/ | ||
protected $langFile; | ||
protected $templateFile; | ||
|
||
/** | ||
* Array of configured translation files | ||
* | ||
* @access protected | ||
* @var array | ||
*/ | ||
protected $langFiles; | ||
|
||
/** | ||
* Sets the content attribute of the controller | ||
|
@@ -81,30 +90,6 @@ public function setPredefined($key) | |
$this->predefined = $key; | ||
} | ||
|
||
/** | ||
* Sets the internal attribute "redirectPage" | ||
* | ||
* @author Reinhard Führicht <[email protected]> | ||
* @param integer $new | ||
* @return void | ||
*/ | ||
public function setRedirectPage($new) | ||
{ | ||
$this->redirectPage = $new; | ||
} | ||
|
||
/** | ||
* Sets the internal attribute "requiredFields" | ||
* | ||
* @author Reinhard Führicht <[email protected]> | ||
* @param array $new | ||
* @return void | ||
*/ | ||
public function setRequiredFields($new) | ||
{ | ||
$this->requiredFields = $new; | ||
} | ||
|
||
/** | ||
* Sets the internal attribute "langFile" | ||
* | ||
|
@@ -117,18 +102,6 @@ public function setLangFiles($langFiles) | |
$this->langFiles = $langFiles; | ||
} | ||
|
||
/** | ||
* Sets the internal attribute "emailSettings" | ||
* | ||
* @author Reinhard Führicht <[email protected]> | ||
* @param array $new | ||
* @return void | ||
*/ | ||
public function setEmailSettings($new) | ||
{ | ||
$this->emailSettings = $new; | ||
} | ||
|
||
/** | ||
* Sets the template file attribute to $template | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters