Package org.nbphpcouncil.modules.php.yii.validators

Examples of org.nbphpcouncil.modules.php.yii.validators.YiiCustomizerValidator


            errorMessage = Bundle.YiiModuleCustomizerExtender_error_source_invalid();
            return;
        }

        // validate
        YiiCustomizerValidator validator = new YiiCustomizerValidator()
                .validateDirectory(sourceDirectory, panel.getSystemPath())
                .validateDirectory(sourceDirectory, panel.getApplicationPath())
                .validateDirectory(sourceDirectory, panel.getZiiPath())
                .validateDirectory(sourceDirectory, panel.getExtPath())
                .validateDirectory(sourceDirectory, panel.getControllersPath())
                .validateDirectory(sourceDirectory, panel.getViewsPath())
                .validateDirectory(sourceDirectory, panel.getThemesPath())
                .validateDirectory(sourceDirectory, panel.getMessagesPath());
        ValidationResult result = validator.getResult();
        if (result.hasWarnings()) {
            isValid = false;
            errorMessage = result.getWarnings().get(0).getMessage();
            return;
        }
View Full Code Here

TOP

Related Classes of org.nbphpcouncil.modules.php.yii.validators.YiiCustomizerValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.