21 require_once
'HTML/QuickForm.php';
32 $this->_relationshipName = $relationshipName;
33 $this->_relationship =& $this->_table->getRelationship($relationshipName);
34 $this->HTML_QuickForm(
'Reference Browser');
40 $type = $this->getRelationshipType($this->_relationshipName);
41 if ( $type !=
"many_to_many" ){
42 trigger_error(
"Attempt to build reference browser widget for relationship '".$this->_relationshipName.
"' in tablle '".$this->_table->tablename.
"' where the type is not 'many_to_many'. The type found was '$type'.", E_USER_ERROR);
45 $domainSQL = $this->_table->getRelationshipDomainSQL($this->_relationshipName);
46 $res = mysql_query($domainSQL, $this->_table->db);