Imports für DcaHelper ergänzt

This commit is contained in:
Carsten Götzinger 2018-02-14 12:51:55 +01:00
parent d15a1b43d2
commit 93e4d2dd63
6 changed files with 43 additions and 34 deletions

View File

@ -28,6 +28,7 @@
* @filesource
*/
use cgoIT/rateit/DcaHelper;
/**
* Extend tl_article
@ -80,7 +81,7 @@ $GLOBALS['TL_DCA']['tl_article']['fields']['rateit_template'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_article_rating extends rateit\DcaHelper {
class tl_article_rating extends DcaHelper {
/**
* Constructor
*/

View File

@ -28,6 +28,8 @@
* @filesource
*/
use cgoIT/rateit/DcaHelper;
$GLOBALS['TL_DCA']['tl_content']['config']['onsubmit_callback'][] = array('tl_content_rateit','insert');
$GLOBALS['TL_DCA']['tl_content']['config']['ondelete_callback'][] = array('tl_content_rateit','delete');
@ -62,7 +64,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['rateit_active'] = array
/**
* Class tl_content_rateit
*/
class tl_content_rateit extends rateit\DcaHelper {
class tl_content_rateit extends DcaHelper {
/**
* Constructor

View File

@ -28,6 +28,7 @@
* @filesource
*/
use cgoIT/rateit/DcaHelper;
/**
* Extend tl_article
@ -69,7 +70,7 @@ $GLOBALS['TL_DCA']['tl_faq']['fields']['rateit_position'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_faq_rating extends rateit\DcaHelper {
class tl_faq_rating extends DcaHelper {
/**
* Constructor
*/

View File

@ -28,6 +28,8 @@
* @filesource
*/
use cgoIT/rateit/DcaHelper;
$GLOBALS['TL_DCA']['tl_module']['config']['onsubmit_callback'][] = array('tl_module_rateit','insert');
$GLOBALS['TL_DCA']['tl_module']['config']['ondelete_callback'][] = array('tl_module_rateit','delete');
@ -107,7 +109,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['rateit_template'] = array
/**
* Class tl_module_rateit
*/
class tl_module_rateit extends rateit\DcaHelper {
class tl_module_rateit extends DcaHelper {
/**
* Constructor

View File

@ -28,6 +28,7 @@
* @filesource
*/
use cgoIT/rateit/DcaHelper;
/**
* Extend tl_article
@ -69,7 +70,7 @@ $GLOBALS['TL_DCA']['tl_news']['fields']['rateit_position'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_news_rating extends rateit\DcaHelper {
class tl_news_rating extends DcaHelper {
/**
* Constructor
*/

View File

@ -29,6 +29,8 @@
*/
use cgoIT/rateit/DcaHelper;
/**
* Extend tl_page
*/
@ -81,7 +83,7 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['rateit_position'] = array
'eval' => array('mandatory'=>true, 'tl_class'=>'w50')
);
class tl_page_rateit extends rateit\DcaHelper {
class tl_page_rateit extends DcaHelper {
/**
* Constructor
*/