33 if (is_null($this->_sPathToModuleDirectory)) {
47 $this->_sPathToModuleDirectory = $sPathToModuleDirectory;
65 return $blModuleValid;
83 $this->_aMissingFiles = array();
95 $aModuleExtendedFiles = $oModule->getExtensions();
96 $blAllModuleExtensionsExists = $this->
_allFilesExists($aModuleExtendedFiles,
true,
'extensions');
98 return $blAllModuleExtensionsExists;
110 $aModuleExtendedFiles = $oModule->getFiles();
111 $blAllModuleFilesExists = $this->
_allFilesExists($aModuleExtendedFiles);
113 return $blAllModuleFilesExists;
126 private function _allFilesExists($aModuleExtendedFiles, $blAddExtension =
false, $sListName =
'files')
128 $blAllModuleFilesExists =
true;
129 foreach ($aModuleExtendedFiles as $sModuleName => $sModulePath) {
132 $sExtPath = $sPathToModuleDirectory . $sModulePath;
133 if ($blAddExtension) {
136 if (!file_exists($sExtPath)) {
137 $blAllModuleFilesExists =
false;
138 $this->_aMissingFiles[$sListName][$sModuleName] = $sModulePath;
142 return $blAllModuleFilesExists;
154 if (substr($sPathToModuleDirectory, -1) != DIRECTORY_SEPARATOR) {
155 $sPathToModuleDirectory .= DIRECTORY_SEPARATOR;
157 return $sPathToModuleDirectory;
160 return $sPathToModuleDirectory;