public function findForActiveModules()
    {
        $fs = new Filesystem();

        $codes = $this->queryActiveModuleCodes();

        foreach ($codes as $key => $code) {
            // test if the module exists on the file system
            if (!$fs->exists(THELIA_MODULE_DIR . $code)) {
                unset($codes[$key]);
            }
        }

        // reset keys
        $codes = array_values($codes);

        return $this->findForModules($codes);
    }
public function findForActiveModules()
    {
        $fs = new Filesystem();

        $codes = $this->queryActiveModuleCodes();

        foreach ($codes as $key => $code) {
            // test if the module exists on the file system
            if (!$fs->exists(THELIA_MODULE_DIR . $code)) {
                unset($codes[$key]);
            }
        }

        // reset keys
        $codes = array_values($codes);

        return $this->findForModules($codes);
    }
public function findForActiveModules ( ) { $ fs = new Filesystem ( ) ; $ codes = $ this -> queryActiveModuleCodes ( ) ; foreach ( $ codes as $ key => $ code ) { // test if the module exists on the file system if ( ! $ fs -> exists ( THELIA_MODULE_DIR . $ code ) ) { unset ( $ codes [ $ key ] ) ; } } // reset keys $ codes = array_values ( $ codes ) ; return $ this -> findForModules ( $ codes ) ; }
Get schema documents for Thelia core and active modules, as well as included external schemas.
@return \DOMDocument[] Schema documents.
Get schema documents for Thelia core and active modules as well as included external schemas .