src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php
private function handlePropertyFileTree(PropertyInterface $property)
    {
        if ('fileTree' !== $property->getWidgetType()) {
            return;
        }

        $extra = $property->getExtra();
        if (true === empty($extra['orderField'])) {
            return;
        }

        $script = '<script type="text/javascript">
                        $("%s").addEvent("change", function(ev) {
                            Backend.toggleCheckboxes(ev.target, "%s");
                            GeneralLogger.info("The file order property is checked " + $("%s").checked)
                        });
                    </script>';

        $mooScript =
            \sprintf(
                $script,
                'properties_' . $property->getName(),
                'properties_' . $extra['orderField'],
                'properties_' . $extra['orderField']
            );

        $GLOBALS['TL_MOOTOOLS']['cca.dc-general.fileTree-' . \md5($mooScript)] = $mooScript;
    }
private function handlePropertyFileTree(PropertyInterface $property)
    {
        if ('fileTree' !== $property->getWidgetType()) {
            return;
        }

        $extra = $property->getExtra();
        if (true === empty($extra['orderField'])) {
            return;
        }

        $script = '<script type="text/javascript">
                        $("%s").addEvent("change", function(ev) {
                            Backend.toggleCheckboxes(ev.target, "%s");
                            GeneralLogger.info("The file order property is checked " + $("%s").checked)
                        });
                    </script>';

        $mooScript =
            \sprintf(
                $script,
                'properties_' . $property->getName(),
                'properties_' . $extra['orderField'],
                'properties_' . $extra['orderField']
            );

        $GLOBALS['TL_MOOTOOLS']['cca.dc-general.fileTree-' . \md5($mooScript)] = $mooScript;
    }
private function handlePropertyFileTree ( PropertyInterface $ property ) { if ( 'fileTree' !== $ property -> getWidgetType ( ) ) { return ; } $ extra = $ property -> getExtra ( ) ; if ( true === empty ( $ extra [ 'orderField' ] ) ) { return ; } $ script = '<script type="text/javascript">
                        $("%s").addEvent("change", function(ev) {
                            Backend.toggleCheckboxes(ev.target, "%s");
                            GeneralLogger.info("The file order property is checked " + $("%s").checked)
                        });
                    </script>' ; $ mooScript = \ sprintf ( $ script , 'properties_' . $ property -> getName ( ) , 'properties_' . $ extra [ 'orderField' ] , 'properties_' . $ extra [ 'orderField' ] ) ; $ GLOBALS [ 'TL_MOOTOOLS' ] [ 'cca.dc-general.fileTree-' . \ md5 ( $ mooScript ) ] = $ mooScript ; }
Handle property file tree.

@param PropertyInterface $property The property.

@return void

@SuppressWarnings(PHPMD.Superglobals)
Handle property file tree .