![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Funciones | |
smarty_block_CWFichaEdicion ($params, $content, &$smarty) |
smarty_block_CWFichaEdicion | ( | $ | params, |
$ | content, | ||
&$ | smarty | ||
) |
Definición en la lÃnea 34 del archivo block.CWFichaEdicion.php.
{ // LECTURA DE VALORES DE LA PILA // //Puntero a la pila de etiquetas que contiene a CWFichaEdicion $punteroPila= count($smarty->_tag_stack)-1; $CW = $smarty->_tag_stack[$punteroPila][0]; //Puntero a la etiqueta Padre CWContenedor $punteroPilaPadre = $punteroPila - 1; $CWPadre = $smarty->_tag_stack[$punteroPilaPadre][0]; //Puntero a la etiqueta Padre CWContenedor $punteroPilaAbuelo = $punteroPilaPadre - 1; //Reasignamos el parametro accion del CWPanel en el de CWFichaEdicion $smarty->_tag_stack[$punteroPila][1]['accion'] = $smarty->_tag_stack[$punteroPilaAbuelo][1]['accion']; if($params['datos']) { $datosTabla=$params['datos']; } /*else { //ERROR PARAMETRO OBLIGATORIO HABRA QUE VER COMO TRATARLO return("Vector de datos VACIO".$content."VECTOR VACIO"); }*/ $numPaginas=count($datosTabla); $indicePila = count($smarty->_tag_stack)-1; $numPagInsertar = 1; $smarty->_tag_stack[$indicePila][1]['numPagInsertar'] = $numPagInsertar; $numPaginasTotales = $numPaginas+$numPagInsertar; // Se abre la etiqueta if(!isset($content)) { // CODIGO NECESARIO PARA CADA COMPONENTE // // Primero defino el nombre del componente. $n_comp='CWFichaEdicion'; // Necesitamos saber cuántas instancias de este componente existen ya / para poner el codigo o no $num=$smarty->igepPlugin->registrarInstancia($n_comp); if($params['id']) { $nombre=$params['id']; } else { $nombre=$n_comp.$num; } } else { $igepSmarty = new IgepSmarty(); if($params['id']) { $idFichaEdicion = $params['id']; } else { $idFichaEdicion = 'FALTAID'; } $mensaje_ini = "<!-- COMIENZA EL SUBPANEL EDICIÓN -->\n"; $mensaje_fin = "<!-- FIN SUBPANEL EDICIÓN -->\n"; return $mensaje_ini.$content.$mensaje_fin; } }