function generar_html_barra_vinculos() { //Acceso al EDITOR PHP if ($this->editable_info['subclase'] && $this->editable_info['subclase_archivo']) { $componente = $this->get_editable(); // Apertura del archivo if (!admin_util::existe_archivo_subclase($this->editable_info['subclase_archivo'])) { // Ir al editor $ver = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $componente[0], 'componente' => $componente[1]), null, 'nucleo/php_inexistente.gif'); echo "<a href='" . $ver['vinculo'] . "'>" . toba_recurso::imagen($ver['imagen'], null, null, $ver['ayuda']) . "</a>\n"; } else { // Ir al editor $ver = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $componente[0], 'componente' => $componente[1])); echo "<a href='" . $ver['vinculo'] . "'>" . toba_recurso::imagen($ver['imagen'], null, null, $ver['ayuda']) . "</a>\n"; // Abrir el archivo $abrir = toba_componente_info::get_utileria_editor_abrir_php(array('proyecto' => $componente[0], 'componente' => $componente[1])); echo '<a href="' . $abrir['vinculo'] . '">' . toba_recurso::imagen($abrir['imagen'], null, null, $abrir['ayuda']) . "</a>\n"; } } parent::generar_html_barra_vinculos(); // EDITOR $editor_item = $this->editable_info['clase_editor']; $editor_proyecto = $this->editable_info['clase_editor_proyecto']; $vinculo = toba::vinculador()->get_url($editor_proyecto, $editor_item, array(), array('zona' => true, 'menu' => true)); echo "<a href='{$vinculo}'>" . toba_recurso::imagen_toba('objetos/editar.gif', true, null, null, 'Editar el componente') . "</a>\n"; }
function get_utilerias($icono_nuevo = true) { //ei_arbol($this->datos); $iconos = array(); if ($icono_nuevo) { $iconos[] = array('imagen' => toba_recurso::imagen_toba("objetos/objeto_nuevo.gif", false), 'ayuda' => "Crear una nueva tabla asociada a la relación", 'vinculo' => toba::vinculador()->get_url(toba_editor::get_id(), "1000247", array('destino_tipo' => 'toba_datos_relacion', 'destino_proyecto' => $this->proyecto, 'destino_id' => $this->id), array('menu' => true, 'celda_memoria' => 'central')), 'plegado' => true); } //--- Mejora para el caso de que la query sea una unica if (isset($this->datos['_info']['punto_montaje'])) { $this->datos['_info_estructura']['punto_montaje'] = $this->datos['_info']['punto_montaje']; } if (isset($this->datos['_info']['ap_clase'])) { $this->datos['_info_estructura']['ap_clase'] = $this->datos['_info']['ap_clase']; } if (isset($this->datos['_info']['ap_archivo'])) { $this->datos['_info_estructura']['ap_archivo'] = $this->datos['_info']['ap_archivo']; } if (isset($this->datos['_info_estructura']['ap_clase'])) { // Hay PHP asociado if (admin_util::existe_archivo_subclase($this->datos['_info_estructura']['ap_archivo'], $this->datos['_info_estructura']['punto_montaje'])) { $iconos[] = toba_componente_info::get_utileria_editor_abrir_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'reflexion/abrir_ap.gif'); $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'nucleo/php_ap.gif'); } else { $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'nucleo/php_ap_inexistente.gif', false); } } return array_merge($iconos, parent::get_utilerias()); }
function get_utilerias() { //--- Mejora para el caso de que la query sea una unica if (isset($this->datos['_info']['ap_punto_montaje'])) { $this->datos['_info_estructura']['ap_punto_montaje'] = $this->datos['_info']['ap_punto_montaje']; } if (isset($this->datos['_info']['ap_clase'])) { $this->datos['_info_estructura']['ap_clase'] = $this->datos['_info']['ap_clase']; } if (isset($this->datos['_info']['ap_archivo'])) { $this->datos['_info_estructura']['ap_sub_clase_archivo'] = $this->datos['_info']['ap_archivo']; } $iconos = array(); if (isset($this->datos['_info_estructura']['ap_sub_clase_archivo'])) { if (admin_util::existe_archivo_subclase($this->datos['_info_estructura']['ap_sub_clase_archivo'], $this->datos['_info_estructura']['ap_punto_montaje'])) { $iconos[] = toba_componente_info::get_utileria_editor_abrir_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'reflexion/abrir_ap.gif'); $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'nucleo/php_ap.gif'); } else { $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), 'ap', 'nucleo/php_ap_inexistente.gif', false); } } return array_merge($iconos, parent::get_utilerias()); }
function get_utilerias() { $param_editores = array(apex_hilo_qs_zona => $this->proyecto . apex_qs_separador . $this->id, "pantalla" => $this->datos['identificador']); $iconos = array(); $iconos[] = array('imagen' => toba_recurso::imagen_toba("objetos/objeto_nuevo.gif", false), 'ayuda' => "Crear un objeto asociado a la pantalla", 'vinculo' => toba::vinculador()->get_url(toba_editor::get_id(), "1000247", array('destino_tipo' => 'toba_ci_pantalla', 'destino_proyecto' => $this->proyecto, 'destino_id' => $this->id, 'destino_pantalla' => $this->datos['pantalla']), array('menu' => true, 'celda_memoria' => 'central')), 'plegado' => true); if ($this->datos['subclase'] && $this->datos['subclase_archivo']) { // Hay PHP asociado if (admin_util::existe_archivo_subclase($this->datos['subclase_archivo'], $this->datos['punto_montaje'])) { $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), $this->datos['identificador']); $iconos[] = toba_componente_info::get_utileria_editor_abrir_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), $this->datos['identificador']); } else { $iconos[] = toba_componente_info::get_utileria_editor_ver_php(array('proyecto' => $this->proyecto, 'componente' => $this->id), $this->datos['identificador'], 'nucleo/php_inexistente.gif', false); } } $iconos[] = array('imagen' => toba_recurso::imagen_toba("objetos/editar.gif", false), 'ayuda' => "Editar esta pantalla", 'vinculo' => toba::vinculador()->get_url(toba_editor::get_id(), "1000249", $param_editores, array('menu' => true, 'celda_memoria' => 'central')), 'plegado' => false); return $iconos; }