public function getImages()
    {
        $images = array();
        $image = $this->getImage();
        if (!empty($image)) {
            $images[$image] = $image;
        }

        $screenshotsPath = $this->getFilePath().self::SCREENSHOT_PATH;
        $files = array();
        if (is_dir($screenshotsPath)) {
            $files = scandir($screenshotsPath);
        }

        foreach ($files as $file) {
            $ext = pathinfo($file, PATHINFO_EXTENSION);
            if ($ext === 'gif' || $ext === 'jpg' || $ext === 'png') {
                $images['/theme/images/screenshots/'.$file] = '/theme/images/screenshots/'.$file;
            }
        }


        return $images;
    }
public function getImages()
    {
        $images = array();
        $image = $this->getImage();
        if (!empty($image)) {
            $images[$image] = $image;
        }

        $screenshotsPath = $this->getFilePath().self::SCREENSHOT_PATH;
        $files = array();
        if (is_dir($screenshotsPath)) {
            $files = scandir($screenshotsPath);
        }

        foreach ($files as $file) {
            $ext = pathinfo($file, PATHINFO_EXTENSION);
            if ($ext === 'gif' || $ext === 'jpg' || $ext === 'png') {
                $images['/theme/images/screenshots/'.$file] = '/theme/images/screenshots/'.$file;
            }
        }


        return $images;
    }
public function getImages ( ) { $ images = array ( ) ; $ image = $ this -> getImage ( ) ; if ( ! empty ( $ image ) ) { $ images [ $ image ] = $ image ; } $ screenshotsPath = $ this -> getFilePath ( ) . self :: SCREENSHOT_PATH ; $ files = array ( ) ; if ( is_dir ( $ screenshotsPath ) ) { $ files = scandir ( $ screenshotsPath ) ; } foreach ( $ files as $ file ) { $ ext = pathinfo ( $ file , PATHINFO_EXTENSION ) ; if ( $ ext === 'gif' || $ ext === 'jpg' || $ ext === 'png' ) { $ images [ '/theme/images/screenshots/' . $ file ] = '/theme/images/screenshots/' . $ file ; } } return $ images ; }
getImages permet de recuperer les images depuis le filer

@return array $images
getImages permet de recuperer les images depuis le filer