public function includeJavaScriptValidationAndConditionFiles()
    {
        $javaScriptValidationFiles = $this->getJavaScriptFiles();
        $assetHandlerConnectorStates = $this->assetHandlerConnectorManager
            ->getAssetHandlerConnectorStates();

        foreach ($javaScriptValidationFiles as $file) {
            if (false === in_array($file, $assetHandlerConnectorStates->getAlreadyIncludedValidationJavaScriptFiles())) {
                $assetHandlerConnectorStates->registerIncludedValidationJavaScriptFiles($file);
                $this->includeJsFile(StringService::get()->getResourceRelativePath($file));
            }
        }

        return $this;
    }
public function includeJavaScriptValidationAndConditionFiles()
    {
        $javaScriptValidationFiles = $this->getJavaScriptFiles();
        $assetHandlerConnectorStates = $this->assetHandlerConnectorManager
            ->getAssetHandlerConnectorStates();

        foreach ($javaScriptValidationFiles as $file) {
            if (false === in_array($file, $assetHandlerConnectorStates->getAlreadyIncludedValidationJavaScriptFiles())) {
                $assetHandlerConnectorStates->registerIncludedValidationJavaScriptFiles($file);
                $this->includeJsFile(StringService::get()->getResourceRelativePath($file));
            }
        }

        return $this;
    }
public function includeJavaScriptValidationAndConditionFiles ( ) { $ javaScriptValidationFiles = $ this -> getJavaScriptFiles ( ) ; $ assetHandlerConnectorStates = $ this -> assetHandlerConnectorManager -> getAssetHandlerConnectorStates ( ) ; foreach ( $ javaScriptValidationFiles as $ file ) { if ( false === in_array ( $ file , $ assetHandlerConnectorStates -> getAlreadyIncludedValidationJavaScriptFiles ( ) ) ) { $ assetHandlerConnectorStates -> registerIncludedValidationJavaScriptFiles ( $ file ) ; $ this -> includeJsFile ( StringService :: get ( ) -> getResourceRelativePath ( $ file ) ) ; } } return $ this ; }
Will include all new JavaScript files given, by checking that every given
file was not already included.

@return $this
Will include all new JavaScript files given by checking that every given file was not already included .