rel = $_REQUEST['rel']; $this->id = $_REQUEST['id']; $moduleName = $this->module = $_REQUEST['rel_module']; global $beanList; require_once("data/Link.php"); $beanName = $beanList [ $moduleName ]; $link = new Link($this->rel, new $beanName(), array()); $this->fields = $link->_get_link_table_definition($rel, 'fields'); } function display(){ //echo "
".print_r($this->fields, true)."
"; echo "
" . '' . '' . '' . '' . '' . '' . '' . ""; $count = 0; foreach($this->fields as $def) { if (!empty($def['relationship_field'])) { $label = !empty($def['vname']) ? $def['vname'] : $def['name']; echo "" . ""; $count++; } } echo "
" . translate($label, $this->module) . ":" ; if ($count%1) echo "
"; } }