Si on est pas à la 1è page, faire apparaitre : la flèche gauche (page précédante)

@param string $ifIssetGet - Si il y a déjà des GET dans l'URL, les cumuler avec les liens
@return string
196325
protected function previousLink(string $ifIssetGet)
    {
        $html = '';

        if ($this->pagination->getCssClassP() !== self::CSS_CLASS_BOOTSRPAP) {
            $condition = $this->pagination->getCurrentPage() != 1;
            $title = ' title="'.$this->langPagination['previous'].'"';
            $cssClass = '';
        } else {
            $condition = true;
            $title = '';
            $cssClass = $this->pagination->isFirstPage() ? ' class="disabled"' : '';
        }

        if ($condition) {
            $href = 'href="?'.self::PAGE_NAME.'='.($this->pagination->getCurrentPage() - 1).''.$ifIssetGet.'"';

            $html .= '<li'.$cssClass.'><a rel="prev"'.$title.' '.$href.'>';
            $html .= '&laquo;';
            $html .= '</a></li>';
        }

        return $html;
    }
1229557
public function get($cle, $errorIfNotExists = false)
  {
    if (is_null($this->values)) {
      return null;
    } else if (array_key_exists($cle, $this->values)) {
      return $this->values[$cle];
    } else {
      if ($errorIfNotExists){
        throw new \Exception('La clé '.$cle.' n\'existe pas dans le fichier '.$this->path);
      } else {
        return null;
      }
    }
  }
1198971
public function getSeasonsAsUrl($sTarget = '')
        {
            if (true === $this->isReady) {
                $aMatch = IMDBHelper::matchRegex($this->sSource, self::IMDB_SEASONS);

                if (count($aMatch[1])) {
                    foreach ($aMatch[1] as $i => $sName) {
                        $aReturn[] = '<a href="http://www.imdb.com/title/tt' . $this->iId . '/episodes?season=' . $sName . '"' . ($sTarget ? ' target="' . $sTarget . '"' : '') . '>' . $sName . '</a>';
                    }

                    return IMDBHelper::arrayOutput(
                        $this->bArrayOutput,
                        $this->sSeparator,
                        $this->sNotFound,
                        $aReturn
                    );
                }
            }

            return IMDBHelper::arrayOutput(
                $this->bArrayOutput,
                $this->sSeparator,
                $this->sNotFound
            );
        }
1224182
public static function getBySectionOfSite($page)
    {
        $identifier = sprintf('/multilingual/section/%s', $page->getCollectionID());
        $cache = \Core::make('cache/request');
        $item = $cache->getItem($identifier);
        if (!$item->isMiss()) {
            $returnID = $item->get();
        } else {

            $item->lock();

            $returnID = false;

            if ($page->isPageDraft()) {
                $tree = false;
                if ($page->getPageDraftTargetParentPageID()) {
                    $cParentID = $page->getPageDraftTargetParentPageID();
                    if ($cParentID) {
                        $parent = Page::getByID($cParentID);
                        $tree = $parent->getSiteTreeObject();
                    }
                }
            }

            if (!isset($tree)) {
                $tree = $page->getSiteTreeObject();
            }

            if ($tree instanceof SiteTree) {
                $returnID = $tree->getSiteHomePageID();
            }

            $cache->save($item->set($returnID));
        }

        if ($returnID) {
            return static::getByID($returnID);
        }
    }
906383
public function getBindedLink($row = [])
    {
        $bind = array_intersect_key($row, array_fill_keys($this->getBinds(), ''));

        // patch pour les paramètre bindé en query
        $link = str_replace('%25', '%', $this->getLink());
        return vsprintf($link, $bind);
    }
125885
protected function getGroupItem( \Aimeos\MShop\Context\Item\Iface $context, $code )
	{
		$manager = \Aimeos\MShop::create( $context, 'customer/group' );

		try
		{
			$item = $manager->findItem( $code );
		}
		catch( \Aimeos\MShop\Exception $e )
		{
			$item = $manager->createItem();
			$item->setLabel( $code );
			$item->setCode( $code );

			$manager->saveItem( $item );
		}

		return $item;
	}
271373
public function getGoogleMapIframe($params = array())
    {
        $html='<link href="css/default.css" rel="stylesheet" type="text/css" />
    ';

        if (isset($this->variablesGet['longitude']) && $this->variablesGet['longitude']!='' && isset($this->variablesGet['latitude']) && $this->variablesGet['latitude']!='') {
            $ajax = new ajaxObject();
            $html.=$ajax->getAjaxFunctions();

            $longitude = $this->variablesGet['longitude'];
            $latitude = $this->variablesGet['latitude'];

            $listeCoords = array();

            // si archiIdAdresse est précisé , on remplace les coordonnées par celle de l'adresse ( car celle envoyée sont celle de la premiere du groupe d'adresse)
            $isCoordonneesAdresseCouranteValide = true;
            $isCoordonneesGroupeAdresseOK = false;

            if (isset($this->variablesGet['archiIdAdresse']) && $this->variablesGet['archiIdAdresse']!='' && isset($this->variablesGet['archiIdEvenementGroupeAdresse']) && $this->variablesGet['archiIdEvenementGroupeAdresse']!='') {
            // s'il existe des coordonnées pour le groupe d'adresse dans la table _adresseEvenement, on prend celles ci
                $reqCoordonneesGroupeAdresse = "SELECT longitudeGroupeAdresse,latitudeGroupeAdresse FROM _adresseEvenement WHERE idAdresse='".$this->variablesGet['archiIdAdresse']."' AND idEvenement='".$this->variablesGet['archiIdEvenementGroupeAdresse']."' AND longitudeGroupeAdresse<>'0' AND latitudeGroupeAdresse<>'0'";
                $resCoordonneesGroupeAdresse = $this->connexionBdd->requete($reqCoordonneesGroupeAdresse);
                if (mysql_num_rows($resCoordonneesGroupeAdresse)>0) {
                    $fetchCoordonneesGroupeAdresse = mysql_fetch_assoc($resCoordonneesGroupeAdresse);
                    $longitude = $fetchCoordonneesGroupeAdresse['longitudeGroupeAdresse'];
                    $latitude = $fetchCoordonneesGroupeAdresse['latitudeGroupeAdresse'];
                    $isCoordonneesGroupeAdresseOK = true;
                }
            }

            if (isset($this->variablesGet['archiIdAdresse']) && $this->variablesGet['archiIdAdresse']!='' && $this->variablesGet['archiIdAdresse']!='0' && !$isCoordonneesGroupeAdresseOK) {
                $reqCoordonnees = "
                    SELECT ha1.longitude as longitude, ha1.latitude as latitude
                    FROM historiqueAdresse ha2, historiqueAdresse ha1
                    WHERE ha2.idAdresse = ha1.idAdresse
                    AND ha1.idAdresse = '".$this->variablesGet['archiIdAdresse']."'
                    GROUP BY ha1.idAdresse, ha1.idHistoriqueAdresse
                    HAVING ha1.idHistoriqueAdresse = max(ha2.idHistoriqueAdresse)
                ";

                $resCoordonnees = $this->connexionBdd->requete($reqCoordonnees);

                if (mysql_num_rows($resCoordonnees)==1) {
                    $fetchCoordonnees = mysql_fetch_assoc($resCoordonnees);
                    if ($fetchCoordonnees['longitude']!='' && $fetchCoordonnees['latitude']!='' && $fetchCoordonnees['longitude']!='0' && $fetchCoordonnees['latitude']!='0') {
                        $longitude = $fetchCoordonnees['longitude'];
                        $latitude = $fetchCoordonnees['latitude'];
                    } else {
                        $isCoordonneesAdresseCouranteValide = false;
                    }
                }
            }

            $affichageCoordonneesVille = false;
            if ($longitude<0 || $latitude<0 || $longitude==0 || $latitude==0 || !$isCoordonneesAdresseCouranteValide) {
            // on detection une longitude ou latitude negative : il doit y avoir eu une erreur de detection des parametres
                // on va centrer la carte sur la ville

                if (isset($this->variablesGet['archiIdAdresse']) && $this->variablesGet['archiIdAdresse']!='' && $this->variablesGet['archiIdAdresse']!='0') {
                // recuperation de l'idville de l'adresse courante
                    $idVille = $this->getIdVilleFrom($this->variablesGet['archiIdAdresse'], 'idAdresse');
                    // coordonnees de la ville
                    $reqCoordonneesVille = "SELECT longitude,latitude,nom FROM ville WHERE idVille = '".$idVille."'";
                    $resCoordonneesVille = $this->connexionBdd->requete($reqCoordonneesVille);
                    $fetchCoordonneesVille = mysql_fetch_assoc($resCoordonneesVille);
                    $longitude = $fetchCoordonneesVille['longitude'];
                    $latitude = $fetchCoordonneesVille['latitude'];
                    $affichageCoordonneesVille = true;
                }
            }

            // rayon en metres
            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse') {
             // dans le cas de l'affichage de la popup sur le detail de l'adresse on prend un rayon plus grand, donc plus d'adresses affichées
                $rayon = 200;
            } else {
                $rayon = 200;
            }

            $arrayGoogleMapCoord = $this->getArrayGoogleMapConfigCoordonneesFromCenter(array('longitude'=>$longitude,'latitude'=>$latitude,'rayon'=>$rayon));

            $listeCoords = $arrayGoogleMapCoord['arrayConfigCoordonnees'];
            // verification des droits
            $isAuthorizedToDrag = false;
            $widthGoogleMapModePopup = 650;
            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse') {
                if (isset($this->variablesGet['archiIdAdresse']) && $this->variablesGet['archiIdAdresse']!='' && isset($this->variablesGet['archiIdEvenementGroupeAdresse']) && $this->variablesGet['archiIdEvenementGroupeAdresse']!='') {
                    $idAdresseCentree = $this->variablesGet['archiIdAdresse'];
                    $idEvenementGroupeAdresseCentre = $this->variablesGet['archiIdEvenementGroupeAdresse'];


                    $utilisateur = new archiUtilisateur();
                    $authentification = new archiAuthentification();

                    // verification des droits
                    if ($utilisateur->isAuthorized('googlemap_change_coordonnees', $authentification->getIdUtilisateur())) {
                        if ($utilisateur->getIdProfil($authentification->getIdUtilisateur())==4 || ($utilisateur->getIdProfil($authentification->getIdUtilisateur())==3
                            && $utilisateur->isModerateurFromVille($authentification->getIdUtilisateur(), $idAdresseCentree, 'idAdresse'))) {
                            $isAuthorizedToDrag = true;
                            $widthGoogleMapModePopup = 650;
                        }
                    }
                }
            }

            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse') {
            // affichage pour la popup sur le detail d'une adresse
                if ($affichageCoordonneesVille) {
                    $gm = new googleMap(array('googleMapKey'=>$this->googleMapKey,'width'=>$widthGoogleMapModePopup,'height'=>500,'zoom'=>11,'noDisplayZoomSelectionSquare'=>true,'noDisplayZoomSlider'=>false,'zoomType'=>'mini','noDisplayEchelle'=>true,'noDisplayMapTypeButtons'=>false,'centerLong'=>$longitude,'centerLat'=>$latitude,'mapType'=>'G_SATELLITE_MAP'));
                } else {
                    $gm = new googleMap(array('googleMapKey'=>$this->googleMapKey,'width'=>$widthGoogleMapModePopup,'height'=>500,'zoom'=>17,'noDisplayZoomSelectionSquare'=>true,'noDisplayZoomSlider'=>false,'zoomType'=>'mini','noDisplayEchelle'=>true,'noDisplayMapTypeButtons'=>false,'centerLong'=>$longitude,'centerLat'=>$latitude,'mapType'=>'G_SATELLITE_MAP'));
                }
            } else {
                if ($affichageCoordonneesVille) {
                    $gm = new googleMap(array('googleMapKey'=>$this->googleMapKey,'width'=>275,'height'=>275,'zoom'=>10,'noDisplayZoomSelectionSquare'=>true,'noDisplayZoomSlider'=>false,'zoomType'=>'mini','noDisplayEchelle'=>true,'noDisplayMapTypeButtons'=>true,'centerLong'=>$longitude,'centerLat'=>$latitude,'mapType'=>'G_SATELLITE_MAP'));
                } else {
                    // affichage par defaut , s'affichage en haut de la page detail d'une adresse , a gauche de l'encars
                    $gm = new googleMap(array('googleMapKey'=>$this->googleMapKey,'width'=>275,'height'=>275,'zoom'=>16,'noDisplayZoomSelectionSquare'=>true,'noDisplayZoomSlider'=>false,'zoomType'=>'mini','noDisplayEchelle'=>true,'noDisplayMapTypeButtons'=>true,'centerLong'=>$longitude,'centerLat'=>$latitude,'mapType'=>'G_SATELLITE_MAP'));//,'divStyle'=>'margin-top:-17px;'
                }
            }
            $html.=$gm->getJsFunctions();
            //$html.="<script  >".$gm->setFunctionAddPointsCallableFromChild()."</script>";
            $html.=$gm->getMap(array('listeCoordonnees'=>$listeCoords,'urlImageIcon'=>$this->getUrlImage()."pointGM.png",'pathImageIcon'=>$this->getCheminPhysique()."images/pointGM.png"));

            // on ajoute le markeur central a la main
            $html.="<script  >
                var iconHome = new GIcon();
                iconHome.image = \"".$this->getUrlImage()."placeMarker.png\";
                //iconHome.shadow = \"https://labs.google.com/ridefinder/images/mm_20_shadow.png\";
                iconHome.iconSize = new GSize(19, 32);
                iconHome.shadowSize = new GSize(22, 20);
                iconHome.iconAnchor = new GPoint(5, 26);
                iconHome.infoWindowAnchor = new GPoint(5, 1);

                //var iconMarkerHome = new GIcon(iconHome);
                ";

            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse' && $isAuthorizedToDrag) {
                $html.="markerHome = new GMarker(new GLatLng(".$latitude.",".$longitude."),{icon:iconHome, draggable: true});";
            } else {
                $html.="markerHome = new GMarker(new GLatLng(".$latitude.",".$longitude."),{icon:iconHome});";
            }

            $html.="map.addOverlay(markerHome);";

            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse' && $isAuthorizedToDrag) {
                $html.="markerHome.enableDragging();";
            }

            if (isset($this->variablesGet['modeAffichage']) && $this->variablesGet['modeAffichage']=='popupDetailAdresse' && $isAuthorizedToDrag) {
                $html.="GEvent.addListener(markerHome,'drag',function(){parent.window.document.getElementById('latitudeUser').value=markerHome.getPoint().lat();parent.window.document.getElementById('longitudeUser').value=markerHome.getPoint().lng();parent.window.document.getElementById('validationCoordonnees').style.display='';});
                ";

                $html.="GEvent.addListener(
                            map,
                            'dragend',
                            function(){appelAjaxReturnJs('".html_entity_decode($this->creerUrl('', 'majGoogleMapNewCenter', array('noRefresh'=>1,'noHTMLHeaderFooter'=>1,'noHeaderNoFooter'=>1,'latitudeHome'=>$latitude,'longitudeHome'=>$longitude)))."&longitudeCenter='+map.getCenter().lng()+'&latitudeCenter='+map.getCenter().lat(),'divListeAdressesAjax')}
                            );";
            } else {
                    $html.="GEvent.addListener(
                            map,
                            'dragend',
                            function(){appelAjaxReturnJs('".html_entity_decode($this->creerUrl('', 'majGoogleMapNewCenter', array('noHTMLHeaderFooter'=>1,'noHeaderNoFooter'=>1,'latitudeHome'=>$latitude,'longitudeHome'=>$longitude)))."&longitudeCenter='+map.getCenter().lng()+'&latitudeCenter='+map.getCenter().lat(),'divListeAdressesAjax')}
                            );";
                    //$html.="GEvent.addListener(map,'dragend',function(){document.getElementById('iFrameMajCenter').src='".$this->creerUrl('','majGoogleMapNewCenter',array('noHeaderNoFooter'=>1,'latitudeHome'=>$latitude,'longitudeHome'=>$longitude))."&longitudeCenter='+map.getCenter().lng()+'&latitudeCenter='+map.getCenter().lat();});";
            }

            //$html.=$gm->setFunctionAddPointsCallableFromChild(array());

            $html.="</script>";
            //$html.="<div id='jsMiseAJourCenter' ><iframe id='iFrameMajCenter' src=''></iframe></div>";//style='position:absolute;left:0px;top:0px;'
        }

        return $html;

    }
1362319
final public function render($ifIssetGet = null): string
    {
        $html = '';

        $andIfHasQueryParams = $this->accumulateIfHasQueryParams($ifIssetGet);

        if ($this->pagination->getGetPP() != Pagination::ALL && $this->pagination->getCount() > $this->pagination->getPerPage()) {
            $html .= $this->open();

            $html .= $this->previousLink(Str::andIfHasQueryParams($andIfHasQueryParams));
            $html .= $this->firstLink(Str::andIfHasQueryParams($andIfHasQueryParams));

            for ($i = $this->pagination->getPageStart(); $i <= $this->pagination->getPageEnd(); $i++) {
                if ($i == $this->pagination->getCurrentPage()) {
                    $html .= $this->paginationActive($i);
                } else {
                    if ($i != 1 && $i != $this->pagination->getNbPages()) {
                        $html .= $this->paginationLink($i.Str::andIfHasQueryParams($andIfHasQueryParams), $i);
                    }
                }
            }

            $html .= $this->lastLink(Str::andIfHasQueryParams($andIfHasQueryParams));
            $html .= $this->nextLink(Str::andIfHasQueryParams($andIfHasQueryParams));

            $html .= $this->close();
        }

        return $html;
    }
1278651
public static function get( \Aimeos\MShop\Context\Item\Iface $context, \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null )
	{
		if( !isset( self::$locale ) )
		{
			$config = $context->getConfig();


			$sitecode = $config->get( 'mshop/locale/site', 'default' );
			$name = $config->get( 'typo3/param/name/site', 'site' );

			if( $request !== null && $request->hasArgument( $name ) === true ) {
				$sitecode = $request->getArgument( $name );
			} elseif( ( $value = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP( 'S' ) ) !== null ) {
				$sitecode = $value;
			}


			$langid = $config->get( 'mshop/locale/language', '' );
			$name = $config->get( 'typo3/param/name/language', 'locale' );

			if( $request !== null && $request->hasArgument( $name ) === true ) {
				$langid = $request->getArgument( $name );
			} elseif( isset( $GLOBALS['TSFE']->config['config']['language'] ) ) {
				$langid = $GLOBALS['TSFE']->config['config']['language'];
			}


			$currency = $config->get( 'mshop/locale/currency', '' );
			$name = $config->get( 'typo3/param/name/currency', 'currency' );

			if( $request !== null && $request->hasArgument( $name ) === true ) {
				$currency = $request->getArgument( $name );
			} elseif( ( $value = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP( 'C' ) ) !== null ) {
				$currency = $value;
			}


			$localeManager = \Aimeos\MShop::create( $context, 'locale' );
			self::$locale = $localeManager->bootstrap( $sitecode, $langid, $currency );
		}

		return self::$locale;
	}
954989
public function getParent($idEvenement = 0)
    {
        $retour = 0;


        // l'evenement n'est pas un groupe d'adresse donc on cherche son parent de type groupe d'adresse
        $req = "select distinct idEvenement from _evenementEvenement where idEvenementAssocie = '".$idEvenement."'";
        $res = $this->connexionBdd->requete($req);
        if (mysql_num_rows($res)==1) {
            $fetch = mysql_fetch_assoc($res);
            $retour = $fetch['idEvenement'];
        }

        return $retour;
    }
1137204
public static function getSiteItems( \Aimeos\MShop\Context\Item\Iface $context, $sites )
	{
		if( !is_array( $sites )  ) {
			$sites = explode( ' ', $sites );
		}

		$manager = \Aimeos\MShop::create( $context, 'locale/site' );
		$search = $manager->createSearch();

		if( !empty( $sites ) ) {
			$search->setConditions( $search->compare( '==', 'locale.site.code', $sites ) );
		}

		return $manager->searchItems( $search );
	}
915254
public function getPage($intPage = 1)
    {
        $intPage--; // Convert page no. to index no.
        if ($intPage < 0) {
            $intPage = 0;
        }

        $this->__elements->seek($intPage);

        $objReturn = $this->__elements->current();
        if ($objReturn === false || get_class($objReturn) !== "ValidFormBuilder\\Page") {
            $objReturn = null;
        }

        return $objReturn;
    }
298833
public function render($ifIssetGet = null): string
    {
        $this->setPageStart()->setPageEnd();

        return $this->htmlRenderer->render($ifIssetGet);
    }
1023384
public static function get( \Aimeos\MW\Config\Iface $config )
	{
		if( self::$context === null )
		{
			// TYPO3 specifc context with password hasher
			$context = new \Aimeos\MShop\Context\Item\Typo3();
			$context->setConfig( $config );

			self::addDataBaseManager( $context );
			self::addFilesystemManager( $context );
			self::addMessageQueueManager( $context );
			self::addLogger( $context );
			self::addCache( $context );
			self::addMailer( $context);
			self::addProcess( $context );
			self::addSession( $context );
			self::addHasher( $context);
			self::addUser( $context);
			self::addGroups( $context);

			self::$context = $context;
		}

		// Use local TS configuration from plugins
		self::$context->setConfig( $config );

		return self::$context;
	}
265205
protected function closeContent( \Aimeos\MW\Container\Content\Iface $content )
	{
		/** controller/jobs/catalog/export/sitemap/standard/template-footer
		 * Relative path to the XML site map footer template of the catalog site map job controller.
		 *
		 * The template file contains the XML code and processing instructions
		 * to generate the site map footer. The configuration string is the path
		 * to the template file relative to the templates directory (usually in
		 * controller/jobs/templates).
		 *
		 * You can overwrite the template file configuration in extensions and
		 * provide alternative templates. These alternative templates should be
		 * named like the default one but with the string "standard" replaced by
		 * an unique name. You may use the name of your project for this. If
		 * you've implemented an alternative client class as well, "standard"
		 * should be replaced by the name of the new class.
		 *
		 * @param string Relative path to the template creating XML code for the site map footer
		 * @since 2019.02
		 * @category Developer
		 * @see controller/jobs/catalog/export/sitemap/standard/template-header
		 * @see controller/jobs/catalog/export/sitemap/standard/template-items
		 * @see controller/jobs/catalog/export/sitemap/standard/template-index
		 */
		$tplconf = 'controller/jobs/catalog/export/sitemap/standard/template-footer';
		$default = 'catalog/export/sitemap-items-footer-standard';

		$context = $this->getContext();
		$view = $context->getView();

		$content->add( $view->render( $context->getConfig()->get( $tplconf, $default ) ) );
	}
908955
public function forward(SendTestRequest $request)
    {
        $campagne = $this->campagne->find($request->input('id'));
        $sujet    = ($campagne->status == 'brouillon' ? 'TEST | '.$campagne->sujet : $campagne->sujet );

        // GET html
        $html  = $this->worker->html($campagne->id);
        $email = $request->input('email');
        
        \Mail::send([], [], function ($message) use ($html,$email,$sujet) {
            $message->to($email)->subject($sujet)->setBody($html, 'text/html');
        });

        // If we want to send via ajax just add a send_type "ajax
        $ajax = $request->input('send_type', 'normal');

        if($ajax == 'ajax') {
            echo 'ok'; exit;
        }

        alert()->success('Email de test envoyé!');

        return redirect('build/campagne/'.$campagne->id);
    }
636376
public function returnSetData()
     {
         $thisID        = $this->getId();
         $code          = [];
         $loadedFiles   = $this->getLoadedFiles();
         if (!empty($loadedFiles)) {
             /* récupération et préparation du répertoire des miniatures */
            $tempFolder = $this->getTempFolder();
            $pathPublic = $_SERVER['DOCUMENT_ROOT'];
            if (empty($tempFolder)) {
                if (!file_exists($pathPublic.'/uploadedFiles')) {
                    $returnCall  = shell_exec('cd '.$pathPublic.' 2>&1');

                    $returnCall .= shell_exec('mkdir public/uploadedFiles 2>&1');
                    $returnCall .= shell_exec('chmod 777 public/uploadedFiles/ 2>&1');
                    if (!empty($returnCall)) { throw new Exception($returnCall); }
                }
                $tempFolderPath  = $pathPublic.'/uploadedFiles';
            }
            $tempFolderPath     .= 'thumbnails';
            if (!file_exists($tempFolderPath.'/thumbnails')) {
                $returnCall  = shell_exec('cd '.$tempFolder.' 2>&1');

                $returnCall .= shell_exec('mkdir '.$tempFolderPath.'/thumbnails 2>&1');
                $returnCall .= shell_exec('chmod 777 '.$tempFolderPath.'/thumbnails 2>&1');
                if (!empty($returnCall)) { throw new Exception($returnCall); }
            }
            $tempFolderPath     .= '/thumbnails';

            foreach($loadedFiles as $fileName => $filePath) {
                $item   = [];
                $item['name']       = $fileName;
                $item['mime']       = mime_content_type($filePath);
                $item['url']        = $filePath;
//                if (strpos(\mime_content_type($filePath), 'image') === 0) {
//                    $item['thumdURL']   = 'http://'.$_SERVER['SERVER_NAME'].'/graphicobjecttemplating/'.$tempFolder.'/'.$fileName;
//                } else {
//                    $ext = pathinfo($filePath, PATHINFO_EXTENSION);
//                    $item['thumdURL']   = 'http://'.$_SERVER['SERVER_NAME'].'/graphicobjecttemplating/'.$tempFolder.'/'.$ext.'.svg';
//                }
                $code[] = $item;
            }
         }
         return  self::formatRetour($thisID, $thisID, 'setData', $code);
     }