PHP Classes

File: config/gdpr-autodelete/gdpr.autodelete.site.filter.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   config/gdpr-autodelete/gdpr.autodelete.site.filter.php   Download  
File: config/gdpr-autodelete/gdpr.autodelete.site.filter.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Melis CMS
Content management system that provides its tools
Author: By
Last change:
Date: 1 year ago
Size: 2,653 bytes
 

Contents

Class file image Download
<?php

return [
   
'plugins' => [
       
'MelisCoreGdprAutoDelete' => [
           
'tools' => [
               
'melis_core_gdpr_auto_delete' => [
                   
'forms' => [
                       
'melisgdprautodelete_add_edit_config_filters' => [
                           
'elements' => [
                                [
                                   
'spec' => [
                                       
'name' => 'mgdprc_site_id',
                                       
'type' => "MelisCoreSiteSelect",
                                       
'options' => [
                                           
'label' => 'tr_melis_core_gdpr_auto_delete_site',
                                           
'tooltip' => 'tr_melis_core_gdpr_auto_delete_site tooltip',
                                           
'empty_option' => 'tr_melis_core_gdpr_auto_delete_site tooltip',
                                           
'disable_inarray_validator' => true,
                                        ],
                                       
'attributes' => [
                                           
'id' => 'mgdprc_site_id',
                                           
'required' => 'required'
                                       
]
                                    ]
                                ]
                            ],
                           
'input_filter' => [
                               
'mgdprc_site_id' => [
                                   
'name' => 'mgdprc_site_id',
                                   
'required' => true,
                                   
'validators' => [
                                        [
                                           
'name' => 'NotEmpty',
                                           
'break_chain_on_failure' => true,
                                           
'options' => [
                                               
'messages' => [
                                                    \
Laminas\Validator\NotEmpty::IS_EMPTY => 'tr_meliscore_emails_mngt_tool_general_properties_form_empty',
                                                ]
                                            ]
                                        ]
                                    ],
                                   
'filters' => [
                                        [
'name' => 'StripTags'],
                                        [
'name' => 'StringTrim']
                                    ]
                                ]
                            ]
                        ]
                    ]
                ],
            ]
        ]
    ]
];