function get_lista_objetos_toba() { $datos = toba_info_editores::get_lista_objetos_toba(',toba_cn'); // Elimino de la lista el objeto actual $objeto_editado = $this->get_entidad()->tabla('base')->get_columna('objeto'); foreach (array_keys($datos) as $id) { if ($datos[$id]['objeto'] == $objeto_editado) { unset($datos[$id]); } } return $datos; }
static function get_objetos_destino($clase = null) { if (isset($clase)) { switch ($clase) { case 'toba_item': return toba_info_editores::get_lista_items(); break; default: $tipo = 'componente,' . $clase; return toba_info_editores::get_lista_objetos_toba($tipo); } } }