Beispiel #1
0
 public function SetObjet($id = NULL, $version = NULL, $commentaire = NULL, $dateProd = NULL)
 {
     parent::SetObjet($id);
     $this->Version($version);
     $this->Commentaire($commentaire);
     $this->DateProd($dateProd);
 }
Beispiel #2
0
 public function SetObjet($id = NULL, $libelle = NULL, $symbole = NULL, $active = NULL)
 {
     parent::SetObjet($id);
     $this->Libelle($libelle);
     $this->Symbole($symbole);
     $this->Active($active);
 }
 public function SetObjet($presentationId = NULL, $groupeId = NULL)
 {
     parent::SetObjet();
     $this->ClePrimaire(array(COL_PRESENTATION, COL_GROUPE));
     $this->Presentation($presentationId);
     $this->Groupe($groupeId);
 }
Beispiel #4
0
 public function SetObjet($fonctionnaliteId = NULL, $autorise = NULL)
 {
     parent::SetObjet();
     $this->ClePrimaire(array(COL_FONCTIONNALITE, COL_GRADE));
     $this->Fonctionnalite($fonctionnaliteId);
     $this->Autorise($autorise);
 }
Beispiel #5
0
 public function SetObjet($id = NULL, $login = NULL, $motDePasse = NULL, $pseudo = NULL, $description = NULL, $histoire = NULL, $dateCreation = NULL, $dateDerniereConnexion = NULL, $dateSuppression = NULL, $supprime = NULL, $actif = NULL, $codeActivation = NULL, $prenom = NULL, $nom = NULL, $dateNaissance = NULL, $fuseauHoraire = NULL, $participation = NULL, $pub = NULL, $dateFinNoPub = NULL, $aide = NULL, $langueId = NULL, $communauteId = NULL, $monnaieId = NULL, $banni = NULL, $bannisseurId = NULL, $dateBannissement = NULL, $dateFinBannissement = NULL, $raisonBannissement = NULL, $superAdmin = NULL)
 {
     parent::SetObjet($id);
     $this->Login($login);
     $this->MotDePasse($motDePasse);
     $this->Pseudo($pseudo);
     $this->Description($description);
     $this->Histoire($histoire);
     $this->DateCreation($dateCreation);
     $this->DateDerniereConnexion($dateDerniereConnexion);
     $this->DateSuppression($dateSuppression);
     $this->Supprime($supprime);
     $this->Actif($actif);
     $this->CodeActivation($codeActivation);
     $this->Prenom($prenom);
     $this->Nom($nom);
     $this->DateNaissance($dateNaissance);
     $this->FuseauHoraire($fuseauHoraire);
     $this->Participation($participation);
     $this->Pub($pub);
     $this->DateFinNoPub($dateFinNoPub);
     $this->Aide($aide);
     $this->Langue($langueId);
     $this->Communaute($communauteId);
     $this->Monnaie($monnaieId);
     $this->Banni($banni);
     $this->Bannisseur($bannisseurId);
     $this->DateBannissement($dateBannissement);
     $this->DateFinBannissement($dateFinBannissement);
     $this->RaisonBannissement($raisonBannissement);
     $this->SuperAdmin($superAdmin);
 }
 public function SetObjet($menuId = NULL, $fonctionnaliteId = NULL, $ordre = NULL)
 {
     $this->noId = true;
     parent::SetObjet();
     $this->idAutoInc = false;
     $this->Menu($menuId);
     $this->Fonctionnalite($fonctionnaliteId);
 }
Beispiel #7
0
 public function SetObjet($menuId = NULL, $contexteId = NULL, $ordre = NULL)
 {
     parent::SetObjet();
     $this->ClePrimaire(array(COL_MENU, COL_CONTEXTE));
     $this->Menu($menuId);
     $this->Contexte($contexteId);
     $this->Ordre($ordre);
 }
 public function SetObjet($presentationId = NULL, $typePresentationModuleId = NULL, $ressourceCSS = NULL, $ressourceJS = NULL)
 {
     parent::SetObjet();
     $this->ClePrimaire(array(COL_PRESENTATION, COL_TYPEPRESENTATIONMODULE));
     $this->Presentation($presentationId);
     $this->TypePresentationModule($typePresentationModuleId);
     $this->RessourceCSS($ressourceCSS);
     $this->RessourceJS($ressourceJS);
 }
Beispiel #9
0
 public function SetObjet($id = NULL, $libelle = NULL, $langueId = NULL, $typeLibelleId = NULL, $langueOriginelle = NULL)
 {
     parent::SetObjet($id);
     $this->AutoInc(false);
     $this->Libelle($libelle);
     $this->Langue($langueId);
     $this->TypeLibelle($typeLibelleId);
     $this->LangueOriginelle($langueOriginelle);
 }
Beispiel #10
0
 public function SetObjet($id = NULL, $nom = NULL, $createurJoueurId = NULL, $createurGroupeId = NULL, $globale = NULL, $publique = NULL, $version = NULL)
 {
     parent::SetObjet($id);
     $this->Nom($nom);
     $this->CreateurJoueur($createurJoueurId);
     $this->CreateurGroupe($createurGroupeId);
     $this->Globale($globale);
     $this->Publique($publique);
     $this->Version($version);
 }
Beispiel #11
0
 public function SetObjet($id = NULL, $nom = NULL, $jeuId = NULL, $serveurId = NULL, $description = NULL, $histoire = NULL, $participation = NULL, $pub = NULL, $dateFinNoPub = NULL, $typeGroupeId = NULL, $etatRecrutementId = NULL, $messageRecrutement = NULL, $communauteId = NULL, $icone = NULL, $supprime = NULL)
 {
     parent::SetObjet($id);
     $this->Nom($nom);
     $this->Jeu($jeuId);
     $this->Serveur($serveurId);
     $this->Description($description);
     $this->Histoire($histoire);
     $this->Participation($participation);
     $this->Pub($pub);
     $this->DateFinNoPub($dateFinNoPub);
     $this->TypeGroupe($typeGroupeId);
     $this->EtatRecrutement($etatRecrutementId);
     $this->MessageRecrutement($messageRecrutement);
     $this->Communaute($communauteId);
     $this->Icone($icone);
     $this->Supprime($supprime);
 }
 public function SetObjet($joueurId = NULL)
 {
     parent::SetObjet();
     $this->ClePrimaire(array(COL_JOUEUR, COL_GRADE));
     $this->Joueur($joueurId);
 }
Beispiel #13
0
 public function Supprimer()
 {
     // Ouverture de la transaction si on ne l'ai pas déjà.
     $dejaEnTransaction = GBase::EstEnTransaction();
     if ($dejaEnTransaction === false) {
         GBase::DemarrerTransaction();
     }
     // On récupère l'ordre de l'élément.
     if (is_string($this->colOrdre)) {
         $this->AjouterColSelection($this->colOrdre);
     } else {
         if (is_array($this->colOrdre)) {
             foreach ($this->colOrdre as $col) {
                 $this->AjouterColSelection($col);
             }
         }
     }
     $this->AjouterColSelection(COL_ORDRE);
     $retour = $this->Charger();
     // On récupère la liste relative au type d'élément afin de décrémenter l'ordre des éléments
     // possédant un ordre supérieur à celui qui va être supprimé.
     $mListe = $this->GetNouvelleListe();
     if ($mListe === NULL) {
         GLog::LeverException(EXM_0210, $this->GetNom() . '::Supprimer, impossible de récupérer un objet liste.');
         $retour = false;
     } else {
         if ($this->Ordre() === NULL) {
             GLog::LeverException(EXM_0211, $this->GetNom() . '::Supprimer, impossible de récupérer l\'ordre de l\'élément d\'id [' . $this->Id() . '].');
             $retour = false;
         }
     }
     $log = true;
     // On supprime l'élément.
     if ($retour !== false) {
         $retour = parent::Supprimer();
         // On décrémente l'ordre des éléments possédant un ordre supérieur à celui qui a été supprimé.
         if ($retour !== false) {
             $mListe->AjouterColModificationExt(0, COL_ORDRE, COL_ORDRE, -1);
             $mListe->AjouterFiltreSuperieur(COL_ORDRE, $this->Ordre());
             if (is_string($this->colOrdre)) {
                 $mListe->AjouterFiltreEgal($this->colOrdre, $this->GetChampSQL($this->colOrdre));
             } else {
                 if (is_array($this->colOrdre)) {
                     foreach ($this->colOrdre as $col) {
                         $mListe->AjouterFiltreEgal($col, $this->GetChampSQL($col));
                     }
                 }
             }
             $retour = $mListe->Modifier();
         } else {
             $log = false;
         }
     }
     // Si on a créé nous même la transaction dans cette fonction, on commit ou rollback suivant le résultat.
     if ($dejaEnTransaction === false) {
         if ($retour === false) {
             GBase::AnnulerTransaction();
         } else {
             GBase::ValiderTransaction();
         }
     }
     if ($retour === false && $log === true) {
         GLog::LeverException(EXM_0212, $this->GetNom() . '::Supprimer, échec de la suppression en base.');
     }
     return $retour;
 }
Beispiel #14
0
 public function Supprimer()
 {
     // On supprime le libellé dans toutes les langues.
     $mLibelle = $this->AjouterJointure(COL_LIBELLE, COL_ID);
     $mLibelle->SupprimerSurJointure(true);
     return parent::Supprimer();
 }
Beispiel #15
0
 public function Supprimer()
 {
     $retour = true;
     $listeGradesJoueurs = $this->ListeGradesJoueurs();
     if ($listeGradesJoueurs !== NULL) {
         $retour = $listeGradesJoueurs->Supprimer();
     }
     if ($retour !== false) {
         $retour = parent::Supprimer();
     }
     return $retour;
 }
Beispiel #16
0
 protected function GetAsCol($col)
 {
     if (self::$numChamp === NULL) {
         self::$numChamp = 0;
     }
     $as = 'C' . self::$numChamp;
     self::$numChamp++;
     $this->mappingColAs[$col] = $as;
     return $as;
 }
Beispiel #17
0
 public function UnsetObjet()
 {
     parent::UnsetObjet();
     unset($this->sNom);
     unset($this->sIcone);
 }
 public function AjouterElement(MObjetMetier $element, $exception = true)
 {
     if ($element->Id() === NULL || $this->GetElementById($element->Id()) === NULL) {
         if ($this->ElementRespecteFiltres($element) === true) {
             $this->liste[] = $element;
         } else {
             if ($exception === true) {
                 GLog::LeverException(EXM_0180, $this->GetNom() . '::AjouterElement, l\'élément d\'id [' . $element->Id() . '] ne correspond pas au filtre, il n\'a pas été ajouté à la liste.');
             }
         }
     }
 }
Beispiel #19
0
 public function UnsetObjet()
 {
     parent::UnsetObjet();
     unset($this->sNom);
     unset($this->sCommentaire);
     unset($this->dDateCreation);
     unset($this->dDateDernierMess);
     unset($this->nbVues);
     unset($this->version);
     unset($this->modeWiki);
     unset($this->oForum);
     unset($this->oCreateur);
     unset($this->oDernierPosteur);
     unset($this->oTypeSujet);
 }
Beispiel #20
0
 public function SetObjet($id = NULL, $nom = NULL, $icone = NULL)
 {
     parent::SetObjet($id);
     $this->Nom($nom);
     $this->Icone($icone);
 }