From 1061814cf7ef01fbd75267054a628524b7a2e4fa Mon Sep 17 00:00:00 2001 From: Ricardo Dalinger Date: Wed, 26 May 2021 19:58:44 -0300 Subject: [PATCH 1/7] Retoca template y comando para generar documentacion, reubica clases --- .../_PhpDocumentor/toba_doc/layout.html.twig | 2 +- .../_PhpDocumentor/toba_doc/method.html.twig | 4 +- .../_PhpDocumentor/toba_doc/packageNames.twig | 3 +- php/3ros/_PhpDocumentor/toba_doc/template.xml | 33 ++++---- php/consola/comandos/comando_doc.php | 28 +++---- .../componentes/interface/efs/toba_ef_cbu.php | 4 +- .../interface/efs/toba_ef_varios.php | 4 + .../toba_autenticacion_basica.php | 4 + .../autenticacion/toba_autenticacion_cas.php | 4 + .../autenticacion/toba_autenticacion_ldap.php | 5 +- .../toba_autenticacion_openid.php | 3 +- .../autenticacion/toba_autenticacion_saml.php | 5 +- .../toba_autenticacion_saml_onelogin.php | 5 +- php/nucleo/lib/toba_autenticable.php | 5 +- php/nucleo/lib/toba_autenticacion.php | 4 + php/nucleo/lib/toba_basic_logger.php | 3 + phpdoc.xml | 80 +++++++++---------- 17 files changed, 115 insertions(+), 81 deletions(-) diff --git a/php/3ros/_PhpDocumentor/toba_doc/layout.html.twig b/php/3ros/_PhpDocumentor/toba_doc/layout.html.twig index 66c03a01b1..4db975cfef 100644 --- a/php/3ros/_PhpDocumentor/toba_doc/layout.html.twig +++ b/php/3ros/_PhpDocumentor/toba_doc/layout.html.twig @@ -20,7 +20,7 @@ {% block langIcons %} - + diff --git a/php/3ros/_PhpDocumentor/toba_doc/method.html.twig b/php/3ros/_PhpDocumentor/toba_doc/method.html.twig index 5325bb6171..c859b14f94 100644 --- a/php/3ros/_PhpDocumentor/toba_doc/method.html.twig +++ b/php/3ros/_PhpDocumentor/toba_doc/method.html.twig @@ -1,7 +1,7 @@ {%for method in methods|sort_asc%} {%if method.static%} - +
{%if method.visibility == "protected"%} @@ -94,7 +94,7 @@ {%for method in methods|sort_asc%} {%if not method.static%} - +
{% if method.visibility == "protected"%} diff --git a/php/3ros/_PhpDocumentor/toba_doc/packageNames.twig b/php/3ros/_PhpDocumentor/toba_doc/packageNames.twig index e1cd7b7563..e71bc7cad2 100644 --- a/php/3ros/_PhpDocumentor/toba_doc/packageNames.twig +++ b/php/3ros/_PhpDocumentor/toba_doc/packageNames.twig @@ -1,7 +1,8 @@ {% block packageNames %}
{% for package in (project.indexes.packages|first).children|sort_asc %} - {{ package.name }} | {% endfor %} + {{ package.name }} |  + {% endfor %} Deprecated
{% endblock %} diff --git a/php/3ros/_PhpDocumentor/toba_doc/template.xml b/php/3ros/_PhpDocumentor/toba_doc/template.xml index 4ed2d130e9..6d1d5aeb85 100644 --- a/php/3ros/_PhpDocumentor/toba_doc/template.xml +++ b/php/3ros/_PhpDocumentor/toba_doc/template.xml @@ -1,19 +1,20 @@ diff --git a/php/consola/comandos/comando_doc.php b/php/consola/comandos/comando_doc.php index b5c828e7a4..a6e922793c 100644 --- a/php/consola/comandos/comando_doc.php +++ b/php/consola/comandos/comando_doc.php @@ -148,27 +148,27 @@ function opcion__api_php() chdir(toba_dir()); $dest = toba_dir().'/proyectos/toba_editor/www/doc/api'; - $_phpDocumentor_setting[] = "phpdoc"; - $_phpDocumentor_setting[] = 'project:run'; - $_phpDocumentor_setting[] = '-c' . toba_dir().'/phpdoc.xml'; - $_phpDocumentor_setting[] = "--title"; - $_phpDocumentor_setting[] ="API PHP"; - $_phpDocumentor_setting[] = "--cache-folder"; + $_phpDocumentor_setting[] = "phpdoc "; + $_phpDocumentor_setting[] = 'project:run '; + $_phpDocumentor_setting[] = '-c ' . toba_dir().'/phpdoc.xml'; + $_phpDocumentor_setting[] = "--title "; + $_phpDocumentor_setting[] ="'API PHP'"; + $_phpDocumentor_setting[] = "--cache-folder "; $_phpDocumentor_setting[] ="/tmp/doc_cache"; - $_phpDocumentor_setting[] = "-t$dest"; + $_phpDocumentor_setting[] = "-t $dest"; $lista = toba_manejador_archivos::get_archivos_directorio($dest, "/\\.html/", true); foreach ($lista as $arch) { unlink($arch); } - - $app = \phpDocumentor\Bootstrap::createInstance() - ->registerProfiler() - ->initialize(); - $_SERVER['argv'] = $_phpDocumentor_setting; - $app->run(); + error_reporting(error_reporting() & ~E_STRICT); - + $cmd = implode(' ', $_phpDocumentor_setting); + toba_manejador_procesos::ejecutar($cmd, $salida, $error); + /*if ($error != '') { + var_dump($error); + }*/ + //-- La clase toba es la clase inicial (como esta un nivel mas adentro hay que bajar un nivel menos) $indice = file_get_contents($dest.'/classes/toba.html'); $indice = str_replace('../../', '#BASE#', $indice); diff --git a/php/nucleo/componentes/interface/efs/toba_ef_cbu.php b/php/nucleo/componentes/interface/efs/toba_ef_cbu.php index 07dc8e90e7..2f02d9dbd7 100644 --- a/php/nucleo/componentes/interface/efs/toba_ef_cbu.php +++ b/php/nucleo/componentes/interface/efs/toba_ef_cbu.php @@ -1,7 +1,9 @@ con el estado actual dentro * Útil para incluir contenidos estáticos en el formulario + * @package Componentes + * @subpackage Efs * @jsdoc ef_fijo ef_fijo */ class toba_ef_fijo extends toba_ef_oculto @@ -250,6 +252,8 @@ function crear_objeto_js() * Incluye un editor HTML WYSYWYG llamado fckeditor * El HTML generado por este editor es bastante pobre en estructura, debería ser utilizado solo por usuarios finales * y no por desarrolladores que quieran agregar contenido dinámicamente a la aplicación. + * @package Componentes + * @subpackage Efs * @jsdoc ef ef */ class toba_ef_html extends toba_ef diff --git a/php/nucleo/lib/autenticacion/toba_autenticacion_basica.php b/php/nucleo/lib/autenticacion/toba_autenticacion_basica.php index 91022098ab..3ace7d5910 100644 --- a/php/nucleo/lib/autenticacion/toba_autenticacion_basica.php +++ b/php/nucleo/lib/autenticacion/toba_autenticacion_basica.php @@ -1,4 +1,8 @@ - - - Centrales - iso-8859-1 - /tmp/output/build - - TODO - FIXME - - - php - php3 - phtml - - - - - php - src - true - true - vendor/* - 3ros/* - convenciones/* - instalacion/* - RDILib/* - - - debug - - {APP_ROOT}/data/log/{DATE}.log - {APP_ROOT}/data/log/{DATE}.errors.log - - - -