smarty ça casse les couilles zebi

This commit is contained in:
Yasder5 2026-02-04 22:51:01 +01:00
parent b1960b2f35
commit aec3c845e0
469 changed files with 53465 additions and 69 deletions

View file

@ -0,0 +1,29 @@
<?php
/**
* Classe d'un Mere de tout objet
* @author Yass & Laura
*/
class Entity{
protected string $_prefix = '';
public function hydrate(array $arrData){
foreach($arrData as $key=>$value){
$strMethodName = "set".ucfirst(str_replace($this->_prefix,'',$key));
if (method_exists($this,$strMethodName)){
$this->$strMethodName($value);
}
}
}
protected function nettoyer(string $strText){
$strText = trim($strText);
$strText = str_replace("<script>", "", $strText);
$strText = str_replace("</script>", "", $strText);
return $strText;
}
}