00001 <?php 00016 abstract class Dom{ 00024 public function atr($nombre, $valor){ 00025 //Probar a utilizar __get y __set http://www.php.net/manual/es/language.oop5.overloading.php 00026 if (!isset($valor)) return $this->${'nombre'}; 00027 else $this->${'nombre'} = $valor; 00028 return true; 00029 } 00035 public function verAtributos(){ 00036 return get_object_vars($this); 00037 } 00038 00039 } 00040 00041 return true; //Indicador de carga para __autoload 00042 ?>