code/Green.php
public function getDesignModules()
    {
        $iterator = $this->createFinder()
            ->in($this->getAbsoluteDesignFolder())
            ->directories();

        $modules = [];
        foreach ($iterator as $file) {
        	if(file_exists($file->getRealPath().'/index.ss')) {
            	$modules[] = new DesignModule($file->getRealPath());
        	}
        }

        return $modules;
    }
public function getDesignModules()
    {
        $iterator = $this->createFinder()
            ->in($this->getAbsoluteDesignFolder())
            ->directories();

        $modules = [];
        foreach ($iterator as $file) {
        	if(file_exists($file->getRealPath().'/index.ss')) {
            	$modules[] = new DesignModule($file->getRealPath());
        	}
        }

        return $modules;
    }
public function getDesignModules ( ) { $ iterator = $ this -> createFinder ( ) -> in ( $ this -> getAbsoluteDesignFolder ( ) ) -> directories ( ) ; $ modules = [ ] ; foreach ( $ iterator as $ file ) { if ( file_exists ( $ file -> getRealPath ( ) . '/index.ss' ) ) { $ modules [ ] = new DesignModule ( $ file -> getRealPath ( ) ) ; } } return $ modules ; }
Gets all of the design modules as objects
@return array
Gets all of the design modules as objects