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 ""; } }