protected function GetDifferentielForListeElementCreation($nomChamp) { switch ($nomChamp) { case COL_FONCTIONNALITE: $cListe = new CListeFonctionnalites($this->prefixIdClass, $this->NomListeFormate($nomChamp) . '_', $this->contexte, -1); $cListe->SetListeParente($this, $id); $mListe = $this->GetSousListe($nomChamp); $cListe->InjecterListeObjetsMetiers($mListe, true); GContexte::AjouterListe($cListe); break; } }
protected function GetDifferentielForListeElement($element, $nomChamp) { $id = $element[LISTE_ELEMENT_ID]; switch ($nomChamp) { case COL_JOUEUR: $cListe = new CListeJoueursPseudos($this->prefixIdClass, $this->NomListeFormate($nomChamp) . '__' . $id, $this->contexte); $cListe->SetListeParente($this, $id); $mListe = $this->GetSousListeElement($element, $nomChamp); $mSousListe = new MListeJoueurs(); $mSousListe = $mListe->ExtraireListe(COL_JOUEUR); $cListe->InjecterListeObjetsMetiers($mSousListe, true); GContexte::AjouterListe($cListe); } }
<?php require_once 'cst.php'; require_once PATH_METIER . 'mListeMonnaies.php'; require_once PATH_COMPOSANTS . 'cListeMonnaiesAdmin.php'; if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) { $prefixIdClass = PIC_ADM; $cListe = new CListeMonnaiesAdmin($prefixIdClass, 'MonnaiesAdmin', $nomContexte); $mListe = new MListeMonnaies(); $mListe->AjouterColSelection(COL_ID); $mListe->AjouterColSelection(COL_LIBELLE); $mListe->AjouterColSelection(COL_SYMBOLE); $mListe->AjouterColSelection(COL_ACTIVE); $cListe->InjecterListeObjetsMetiers($mListe); if ($dejaCharge === false) { GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cListe); } else { GContexte::AjouterListe($cListe); } }
require_once PATH_COMPOSANTS . 'cListeCssElements.php'; require_once PATH_COMPOSANTS . 'cListeModificationPresentation.php'; require_once PATH_METIER . 'mPresentation.php'; require_once PATH_METIER . 'mPresentationModule.php'; require_once PATH_METIER . 'mTypePresentationModule.php'; require_once PATH_METIER . 'mListePresentationsModules.php'; require_once PATH_METIER . 'mListeTypesPresentationsModules.php'; $groupe = GSession::Groupe(COL_ID); if ($groupe !== NULL && GDroit::ADroitPopErreur(FONC_PRS_CREERMODIFIER) === true) { if (SListe::IsChargementEtage() === true) { $cListeModificationPresentation = new cListeModificationPresentation('', 'ModifPres', $nomContexte, -1, -1, false, '', true, '', '', '', '', '', '', '', AJAXFONC_RECHARGER); $libelle = GSession::Libelle(LIB_PRS_CHAMP, true, true); $cListeModificationPresentation->AjouterElement($libelle . '10', $libelle, '', $libelle, $libelle, $libelle); $cListeModificationPresentation->AjouterElement($libelle . '11', $libelle, '', $libelle, $libelle, $libelle); $cListeModificationPresentation->AjouterElement($libelle . '12', $libelle, '', $libelle, $libelle, $libelle); GContexte::AjouterListe($cListeModificationPresentation); } else { $presentationModif = GSession::PresentationModif(); $presentationModule = GSession::PresentationModule($module); if ($presentationModif !== $presentationModule || $dejaCharge === false) { GSession::PresentationModule($module, $presentationModif, true); $prefixIdClass = PIC_PRES; // Récupération du nom de fichier. $mPresentationModule = new MPresentationModule(); $mPresentationModule->TypePresentationModule($module); $mTypePresentationModule = $mPresentationModule->TypePresentationModule(); $mTypePresentationModule->AjouterColSelection(COL_NOMFICHIER); $mTypePresentationModule->Charger(); $nomFichier = $mTypePresentationModule->NomFichier(); /*********************************************/ $cListeCssParties = new CListeCssParties($nomFichier, $presentationModif, $prefixIdClass, 'CssParties', $nomContexte, -1);
protected function GetDifferentielForListe($nomChamp) { switch ($nomChamp) { case 'champ_5': $libelle = GSession::Libelle(LIB_PRS_CHAMP, true, true); $cListe = new CListeModificationPresentation2($this->prefixIdClass, 'ModifPres2', $this->contexte, -1, -1, false, '', true, '', '', '', '', '', '', '', AJAXFONC_RECHARGER); $cListe->AjouterElement($libelle . '1', $libelle, '', $libelle); $cListe->AjouterElement($libelle . '2', $libelle, '', $libelle); $cListe->AjouterElement($libelle . '3', $libelle, '', $libelle); $cListe->AjouterElement($libelle . '4', $libelle, '', $libelle); $cListe->AjouterElement($libelle . '5', $libelle, '', $libelle); $cListe->SetListeParente($this); GContexte::AjouterListe($cListe); break; } }