Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion bin/herramientas/JSDoc/index-all.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<td class="header-top-left"><img src="../api/img/logo.png" border="0"/></td>
<td class="header-top-right">
<a href='../wiki/trac/toba/wiki/WikiStart.html' title="Navegar hacia la documentaci�n WIKI">
<a href='../docs/intro' title="Navegar hacia la documentaci�n WIKI">
<img border='0' style='vertical-align: middle' src="../api/img/wiki-small.png" /></a>
<a href='../api/index.html' title="Navegar hacia la documentaci�n PHP">
<img border='0' style='vertical-align: middle' src="../api/img/php-small.png" /></a>
Expand Down
4 changes: 2 additions & 2 deletions bin/herramientas/JSDoc/main.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<td class="header-top-left"><img src="../api/img/logo.png" border="0"/></td>
<td class="header-top-right">
<a href='../wiki/trac/toba/wiki/WikiStart.html' title="Navegar hacia la documentaci�n WIKI">
<a href='../docs/intro' title="Navegar hacia la documentaci�n WIKI">
<img border='0' style='vertical-align: middle' src="../api/img/wiki-small.png" /></a>
<a href='../api/index.html' title="Navegar hacia la documentaci�n PHP">
<img border='0' style='vertical-align: middle' src="../api/img/php-small.png" /></a>
Expand Down Expand Up @@ -106,7 +106,7 @@
<table border="0" cellspacing="0" cellpadding="0">
<TMPL_IF NAME="wiki">
<tr>
<td colspan="2"><strong><a href='../wiki/trac/toba/wiki/<TMPL_VAR name="wiki">.html'>
<td colspan="2"><strong><a href='../docs/intro'>
<img border='0' style='vertical-align: middle' src="../api/img/wiki-small.png" />
Documentaci�n WIKI</a></strong></td></tr>
</TMPL_IF>
Expand Down
2 changes: 1 addition & 1 deletion bin/herramientas/JSDoc/overview-tree.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<td class="header-top-left"><img src="../api/img/logo.png" border="0"/></td>
<td class="header-top-right">
<a href='../wiki/trac/toba/wiki/WikiStart.html' title="Navegar hacia la documentaci�n WIKI">
<a href='../docs/intro' title="Navegar hacia la documentaci�n">
<img border='0' style='vertical-align: middle' src="../api/img/wiki-small.png" /></a>
<a href='../api/index.html' title="Navegar hacia la documentaci�n PHP">
<img border='0' style='vertical-align: middle' src="../api/img/php-small.png" /></a>
Expand Down
2 changes: 1 addition & 1 deletion php/3ros/_PhpDocumentor/toba_doc/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</td>
<td class="header-top-right">
{% block langIcons %}
<a href="{{ path('../wiki/trac/toba/wiki/WikiStart.html') }}" title="Navegar hacia la documentación WIKI">
<a href="{{ path('../docs/intro') }}" title="Navegar hacia la documentación">
<img border='0' style='vertical-align: middle' src="{{ path('img/wiki-small.png') }}" />
</a>
<img height=64 border='0' style='vertical-align: middle' src="{{ path('img/php.png') }}" />
Expand Down
4 changes: 2 additions & 2 deletions php/3ros/_PhpDocumentor/toba_doc/method.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<a name='method_detail'></a>
{%for method in methods|sort_asc%}
{%if method.static%}
<a name="method{{method.name}}" id="{{method.name}}"><!-- --></a>
<a name="method{{method.name}}" id="{{method.name}}" href="{{ link(method) }}"><!-- --></a>
<div class="{{cycle(["evenrow", "oddrow"], loop.index0)}}">
<div class="method-header">
{%if method.visibility == "protected"%}
Expand Down Expand Up @@ -94,7 +94,7 @@

{%for method in methods|sort_asc%}
{%if not method.static%}
<a name="method{{method.name}}" id="{{method.name}}"><!-- --></a>
<a name="method{{method.name}}" id="{{method.name}}" href="{{ link(method) }}"><!-- --></a>
<div class="{{cycle(["evenrow", "oddrow"], loop.index0)}}">
<div class="method-header">
{% if method.visibility == "protected"%}
Expand Down
3 changes: 2 additions & 1 deletion php/3ros/_PhpDocumentor/toba_doc/packageNames.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{% block packageNames %}
<div class="package">
{% for package in (project.indexes.packages|first).children|sort_asc %}
<a href="{{ path(package) }}">{{ package.name }}</a>&nbsp;|&nbsp;{% endfor %}
<a href="{{ link(package) }}">{{ package.name }}</a>&nbsp;|&nbsp;
{% endfor %}
<a href="{{ path('deprecated.html') }}">Deprecated</a>
</div>
{% endblock %}
Expand Down
33 changes: 17 additions & 16 deletions php/3ros/_PhpDocumentor/toba_doc/template.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<template>
<author>None</author>
<email>none@none.com</email>
<version>1.0.0</version>
<copyright>SIU 2038</copyright>
<description>die young die!</description>
<transformations>
<transformation query="copy" writer="FileIo" source="templates/toba_doc/img" artifact="img"/>
<transformation query="copy" writer="FileIo" source="templates/toba_doc/css" artifact="css"/>
<transformation query="copy" writer="FileIo" source="templates/toba_doc/js" artifact="js"/>
<transformation writer="twig" source="templates/toba_doc/index.html.twig" artifact="index.html"/>
<transformation query="indexes.packages" writer="twig" source="templates/toba_doc/packages.html.twig" />
<transformation query="indexes.classes" writer="twig" source="templates/toba_doc/class.html.twig" />
<transformation query="indexes.interfaces" writer="twig" source="templates/toba_doc/class.html.twig" />
<transformation query="indexes.traits" writer="twig" source="templates/toba_doc/class.html.twig" />
<transformation writer="twig" source="templates/toba_doc/deprecated.html.twig" artifact="deprecated.html"/>
</transformations>
<name>toba_doc</name>
<author>None</author>
<email>none@none.com</email>
<version>1.0.0</version>
<copyright>SIU 2038</copyright>
<description>die young die!</description>
<transformations>
<transformation query="copy" writer="FileIo" source="./img" artifact="img"/>
<transformation query="copy" writer="FileIo" source="./css" artifact="css"/>
<transformation query="copy" writer="FileIo" source="./js" artifact="js"/>
<transformation writer="twig" source="./index.html.twig" artifact="index.html"/>
<transformation query="indexes.packages" writer="twig" source="./packages.html.twig" />
<transformation query="indexes.classes" writer="twig" source="./class.html.twig" />
<transformation query="indexes.interfaces" writer="twig" source="./class.html.twig" />
<transformation query="indexes.traits" writer="twig" source="./class.html.twig" />
<transformation writer="twig" source="./deprecated.html.twig" artifact="deprecated.html"/>
</transformations>
</template>
39 changes: 22 additions & 17 deletions php/consola/comandos/comando_doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -201,9 +201,14 @@ function opcion__api_js()
"--project-name \"SIU-Toba\" $directorios ";
system($cmd);

//-- La clase toba es la clase inicial
//--- Elimina archivos overview* que no sirven de nada
$lista = toba_manejador_archivos::get_archivos_directorio($destino, "/overview-.*/", true);
foreach ($lista as $arch) {
unlink($arch);
}
//-- La clase toba es la clase inicial
copy($destino.'/toba.html', $destino.'/index.html');
//$this->convertir_codificacion_dir($destino, "ISO-8859-1", "UTF-8");
$this->convertir_codificacion_dir($destino, "ISO-8859-1", "UTF-8");
}

/**
Expand Down Expand Up @@ -240,4 +245,4 @@ protected function convertir_codificacion_dir($destino, $desde="UTF-8", $hasta="
$this->consola->mensaje("Fin conversi�n");
}
}
?>
?>
18 changes: 8 additions & 10 deletions php/lib/registro/toba_registro.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ abstract class toba_registro {
const registro_delete = 'registro_delete';

protected $tipo;

protected $tabla; // La tabla a la que pertenece el registro

protected $columnas = array(); // Las columnas del registro

// La tabla a la que pertenece el registro
protected $tabla;

// Las columnas del registro
protected $columnas = array();

protected $conversion_auto_latin1 = true;
protected $conversion_auto_latin1 = true;
/**
* La bd donde se tiene que guardar el registro
* @var toba_db_postgres7
*/
protected $db;
Expand All @@ -37,9 +34,10 @@ function __construct($db, $nombre_tabla)
* Si es verdadero todos los strings que se pasen como parametro $valor a
* add_columna van a ser convertidos autom�ticamente a latin1 si est�n en
* utf8
* @param <type> $param
*
* @param boolean $param
*/
function set_conversion_auto_latin1($param)
function set_conversion_auto_latin1(Boolean $param)
{
$this->conversion_auto_latin1 = $param;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ protected function get_path_componente($path_inicial, $tipo, $id)
}

/**
* @param <type> $componente
* @param <type> $path
* @param mixed $componente
* @param string $path
*/
private function generar_componente_borrada(&$componente, $path)
{
Expand Down Expand Up @@ -138,8 +138,8 @@ private function generar_componente_borrada(&$componente, $path)
}

/**
* @param <type> $componente
* @param <type> $path
* @param mixed $componente
* @param string $path
*/
private function generar_componente_modificada(&$componente, $path)
{
Expand Down
4 changes: 3 additions & 1 deletion php/nucleo/componentes/interface/efs/toba_ef_cbu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
/**
* Description of toba_ef_cbu
*
* @package Componentes
* @subpackage Efs
* @jsdoc ef_cbu ef_cbu
* @author jpiazza
*/
class toba_ef_cbu extends toba_ef_editable {
Expand Down
4 changes: 4 additions & 0 deletions php/nucleo/componentes/interface/efs/toba_ef_varios.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ function get_descripcion_estado($tipo_salida)
/**
* Muestra un <div> 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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions php/nucleo/componentes/interface/toba_ei_cuadro.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function get_datos()

/**
* @ignore
* @return <type>
* @return mixed
*/
function get_estructura_datos()
{
Expand Down Expand Up @@ -897,8 +897,8 @@ function get_clave_seleccionada()

/**
* Indica si la clave que se pasa por parametro es igual a la fila actualmente seleccionada.
* @param <type> $clave_fila
* @return <type>
* @param int $clave_fila
* @return boolean
*/
function es_clave_fila_seleccionada($clave_fila)
{
Expand Down Expand Up @@ -1791,9 +1791,9 @@ protected function finalizar_ordenamiento()

/**
* @ignore
* @param <type> $columna
* @param <type> $sentido
* @return <type>
* @param string $columna
* @param string $sentido
* @return boolean
*/
function es_sentido_ordenamiento_seleccionado($columna, $sentido)
{
Expand Down
10 changes: 5 additions & 5 deletions php/nucleo/componentes/interface/toba_ei_cuadro_salida_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ function html_pie_corte_control(&$nodo, $es_ultimo)

/**
* @ignore
* @param <type> $nodo
* @param <type> $total_columnas
* @param array $nodo
* @param mixed $total_columnas
*/
function html_cabecera_pie($indice, $nodo, $total_columnas)
{
Expand All @@ -444,8 +444,8 @@ function html_cabecera_pie($indice, $nodo, $total_columnas)

/**
* @ignore
* @param <type> $nodo
* @param <type> $total_columnas
* @param array $nodo
* @param mixed $total_columnas
* @todo Por el momento no se estaria usando y no se como se usa
*/
function html_pie_pie($nodo, $total_columnas, $es_ultimo)
Expand All @@ -462,7 +462,7 @@ function html_pie_pie($nodo, $total_columnas, $es_ultimo)

/**
* @ignore
* @param <type> $nodo
* @param array $nodo
*/
function html_sumarizacion_usuario($nodo, $total_columnas)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function get_opciones_columnas()

/**
* @ignore
* @param <type> $columnas
* @param <type> $datos_cuadro
* @param <type> $id_fila
* @param <type> $formateo
* @param array $columnas
* @param array $datos_cuadro
* @param int $id_fila
* @param toba_formateo $formateo
* @return string
*/
function generar_layout_fila($columnas, $datos_cuadro, $id_fila, $formateo)
Expand Down
2 changes: 1 addition & 1 deletion php/nucleo/componentes/interface/toba_ei_firma.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function set_alto_pdf($alto)

/**
* Servicio que se ejecuta cuando el applet busca/envia el PDF
* @param <type> $parametros
* @param mixed $parametros
* @ignore
*/
function servicio__ejecutar($parametros = null)
Expand Down
8 changes: 4 additions & 4 deletions php/nucleo/componentes/interface/toba_ei_mapa.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function set_extent_activo($xmin, $ymin, $xmax, $ymax)

/**
* @ignore
* @param <type> $datos
* @param mixed $datos
*/
function set_datos($datos)
{
Expand Down Expand Up @@ -432,7 +432,7 @@ function generar_botones($clase = '', $extra='')
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
/**
* Devuelve el vinculo con la direccion a la que se le pedira el servicio para el grafico del mapa.
* @return <type>
* @return string|null
*/
protected function get_url_mapa()
{
Expand All @@ -445,7 +445,7 @@ protected function get_url_mapa()

/**
* Servicio que se ejecuta cuando el cliente pide el mapa por URL
* @param <type> $parametros
* @param mixed $parametros
* @ignore
*/
function servicio__ejecutar($parametros = null)
Expand Down Expand Up @@ -559,7 +559,7 @@ protected function enviar_archivo($archivo)
/**
* Devuelve la lista de scripts JS utilizados por este componente
* @ignore
* @return <type>
* @return string[]
*/
function get_consumo_javascript()
{
Expand Down
Loading