+ public function __call($method_name, $arguments){
+ $r = false;
+ if(substr($method_name, 0, 4) == "get_"){
+ if(
+ ($attribut_name = substr($method_name, 4))
+ ){
+ if(isset($this->attributs[$attribut_name]["value"])){
+ $r = $this->attributs[$attribut_name]["value"];
+ }
+ else $r = null;
+ }
+ }
+ elseif(substr($method_name, 0, 4) == "set_"){
+ if(
+ ($attribut_name = substr($method_name, 4))
+ && isset($arguments[0])
+ ){
+ if(!isset($this->attributs[$attribut_name])) $this->attributs[$attribut_name] = array();
+ $this->attributs[$attribut_name]["value"] = $arguments[0];
+ $r = true;
+ }
+ }
+ elseif(substr($method_name, 0, 6) == "valid_"){
+ if(
+ ($attribut_name = substr($method_name, 6))
+ && isset($arguments[0])
+ ){
+ $r = true;
+ }
+ }
+ return $r;
+ }