src/Contao/View/Contao2BackendView/BaseView.php
private function addAjaxPropertyForEditAll()
    {
        $inputProvider = $this->getEnvironment()->getInputProvider();

        if (('select' !== $inputProvider->getParameter('act'))
            && ('edit' !== $inputProvider->getParameter('select'))
            && ('edit' !== $inputProvider->getParameter('mode'))
        ) {
            return;
        }

        $originalProperty = $this->findOriginalPropertyByModelId($inputProvider->getValue('name'));
        if (null === $originalProperty) {
            return;
        }

        $propertiesDefinition = $this->getEnvironment()->getDataDefinition()->getPropertiesDefinition();

        $propertyClass = \get_class($originalProperty);

        $property = new $propertyClass($inputProvider->getValue('name'));
        $property->setLabel($originalProperty->getLabel());
        $property->setDescription($originalProperty->getDescription());
        $property->setDefaultValue($originalProperty->getDefaultValue());
        $property->setExcluded($originalProperty->isExcluded());
        $property->setSearchable($originalProperty->isSearchable());
        $property->setFilterable($originalProperty->isFilterable());
        $property->setWidgetType($originalProperty->getWidgetType());
        $property->setExplanation($originalProperty->getExplanation());
        $property->setExtra($originalProperty->getExtra());

        $propertiesDefinition->addProperty($property);
    }
private function addAjaxPropertyForEditAll()
    {
        $inputProvider = $this->getEnvironment()->getInputProvider();

        if (('select' !== $inputProvider->getParameter('act'))
            && ('edit' !== $inputProvider->getParameter('select'))
            && ('edit' !== $inputProvider->getParameter('mode'))
        ) {
            return;
        }

        $originalProperty = $this->findOriginalPropertyByModelId($inputProvider->getValue('name'));
        if (null === $originalProperty) {
            return;
        }

        $propertiesDefinition = $this->getEnvironment()->getDataDefinition()->getPropertiesDefinition();

        $propertyClass = \get_class($originalProperty);

        $property = new $propertyClass($inputProvider->getValue('name'));
        $property->setLabel($originalProperty->getLabel());
        $property->setDescription($originalProperty->getDescription());
        $property->setDefaultValue($originalProperty->getDefaultValue());
        $property->setExcluded($originalProperty->isExcluded());
        $property->setSearchable($originalProperty->isSearchable());
        $property->setFilterable($originalProperty->isFilterable());
        $property->setWidgetType($originalProperty->getWidgetType());
        $property->setExplanation($originalProperty->getExplanation());
        $property->setExtra($originalProperty->getExtra());

        $propertiesDefinition->addProperty($property);
    }
private function addAjaxPropertyForEditAll ( ) { $ inputProvider = $ this -> getEnvironment ( ) -> getInputProvider ( ) ; if ( ( 'select' !== $ inputProvider -> getParameter ( 'act' ) ) && ( 'edit' !== $ inputProvider -> getParameter ( 'select' ) ) && ( 'edit' !== $ inputProvider -> getParameter ( 'mode' ) ) ) { return ; } $ originalProperty = $ this -> findOriginalPropertyByModelId ( $ inputProvider -> getValue ( 'name' ) ) ; if ( null === $ originalProperty ) { return ; } $ propertiesDefinition = $ this -> getEnvironment ( ) -> getDataDefinition ( ) -> getPropertiesDefinition ( ) ; $ propertyClass = \ get_class ( $ originalProperty ) ; $ property = new $ propertyClass ( $ inputProvider -> getValue ( 'name' ) ) ; $ property -> setLabel ( $ originalProperty -> getLabel ( ) ) ; $ property -> setDescription ( $ originalProperty -> getDescription ( ) ) ; $ property -> setDefaultValue ( $ originalProperty -> getDefaultValue ( ) ) ; $ property -> setExcluded ( $ originalProperty -> isExcluded ( ) ) ; $ property -> setSearchable ( $ originalProperty -> isSearchable ( ) ) ; $ property -> setFilterable ( $ originalProperty -> isFilterable ( ) ) ; $ property -> setWidgetType ( $ originalProperty -> getWidgetType ( ) ) ; $ property -> setExplanation ( $ originalProperty -> getExplanation ( ) ) ; $ property -> setExtra ( $ originalProperty -> getExtra ( ) ) ; $ propertiesDefinition -> addProperty ( $ property ) ; }
Add the ajax property for edit all mode.

@return void
Add the ajax property for edit all mode .