function get_codigo_vista_previa() { $opciones = $this->get_opciones(); $metodos = $this->get_metodos_a_generar(); $archivo_php = new toba_archivo_php($this->get_path_archivo()); //-- Se va a modificar algo? if ($this->s__es_esclavo && (!empty($metodos) || $archivo_php->esta_vacio())) { if (!method_exists($this->controlador(), 'get_metaclase')) { throw new toba_error('No se invoco correctamente en el visor de archivos PHP'); } $clase_php = new toba_clase_php($archivo_php, $this->controlador()->get_metaclase()); $codigo = $clase_php->get_codigo($metodos, $opciones['incluir_comentarios'], $opciones['incluir_separadores']); $codigo = "\n" . $codigo . "\n"; return $codigo; } else { //-- Muestra el original if (file_exists($this->get_path_archivo())) { return file_get_contents($this->get_path_archivo()); } else { return ''; } } }