Beispiel #1
0
 public function __construct($prefixIdClass, $typeSynchro, $contexte, $nbElementsParPage = 20, $nbElementsTotal = -1, $triable = false, $typeLiaison = '', $chargementModifDiffere = true, $foncJsOnClick = '', $foncAjaxTriCreation = '', $foncAjaxTriModification = AJAXFONC_MODIFIERDANSCONTEXTE, $foncAjaxTriSuppression = '', $foncAjaxCreation = AJAXFONC_AJOUTERAUCONTEXTE, $foncAjaxModification = AJAXFONC_MODIFIERDANSCONTEXTE, $foncAjaxSuppression = AJAXFONC_SUPPRIMERDUCONTEXTE, $foncAjaxRechargement = AJAXFONC_RECHARGER)
 {
     $this->prefixIdClass = $prefixIdClass;
     if (self::$nbListesEnregistrees === NULL) {
         self::$nbListesEnregistrees = array();
     }
     // Affectation d'un numéro à la liste qui permet, avec son typeSynchro, de la rendre unique et identifiable.
     if (!array_key_exists($typeSynchro, self::$nbListesEnregistrees)) {
         $this->numero = 1;
         self::$nbListesEnregistrees[$typeSynchro] = 1;
     } else {
         $this->numero = self::$nbListesEnregistrees[$typeSynchro];
         self::$nbListesEnregistrees[$typeSynchro]++;
     }
     if (self::$listeElemChargee === NULL) {
         self::$listeElemChargee = array();
     }
     parent::__construct('', false);
     $this->elements = array();
     $this->champs = array();
     $this->menus = array();
     $this->chargement = true;
     $this->contexte = $contexte;
     $this->typeSynchro = $typeSynchro;
     $this->nbElementsParPage = $nbElementsParPage;
     $this->nbElementsTotal = $nbElementsTotal;
     if ($this->statique !== true) {
         $this->numPageCourante = GContexte::ListePageCourante($contexte, $typeSynchro, $this->numero);
     }
     $this->numAnciennePage = $this->numPageCourante;
     $this->triable = $triable;
     if ($this->triable === true) {
         $this->typeLiaison = $typeLiaison;
     }
     $this->foncAjaxCreation = $foncAjaxCreation;
     $this->foncAjaxModification = $foncAjaxModification;
     $this->foncAjaxSuppression = $foncAjaxSuppression;
     $this->foncAjaxRechargement = $foncAjaxRechargement;
     $this->foncJsOnClick = $foncJsOnClick;
     $this->foncAjaxTriCreation = $foncAjaxTriCreation;
     $this->foncAjaxTriModification = $foncAjaxTriModification;
     $this->foncAjaxTriSuppression = $foncAjaxTriSuppression;
     if ($this->statique !== true) {
         $this->listeContexte = GContexte::Liste($contexte, $this->TypeSynchroPage());
         $this->listeSuppressions = $this->listeContexte;
         if ($this->listeContexte === NULL) {
             $this->listeContexte = array();
         }
     }
     $this->rechargement = false;
     $this->chargementModifDiffere = $chargementModifDiffere;
     $this->referentiels = array();
     $this->referentielsElements = array();
     $this->sousListes = array();
     $this->sousListesListe = array();
     $this->sousListesElements = array();
     $this->sousListesElementsListe = array();
     $this->listeParente = NULL;
     $this->hasListeParente = false;
     $this->idListeParente = '';
     $this->niveau = -1;
     $this->nomFichierPresMod = '';
     $this->presentation = -1;
     $this->InitialiserChamps();
     $this->InitialiserReferentiels();
     $this->InitialiserListes();
     $this->AddClass(LISTE_JQ);
 }