/** * @see parent::updatePlainFields() */ function updatePlainFields() { parent::updatePlainFields(); $soundex2 = new soundex2(); if ($this->nom) { $this->nom = strtoupper($this->nom); $this->nom_soundex2 = $soundex2->build($this->nom); } if ($this->nom_jeune_fille) { $this->nom_jeune_fille = strtoupper($this->nom_jeune_fille); $this->nomjf_soundex2 = $soundex2->build($this->nom_jeune_fille); } if ($this->prenom) { $this->prenom = ucwords(strtolower($this->prenom)); $this->prenom_soundex2 = $soundex2->build($this->prenom); } }