relationship, FROM_MODULE, FROM_MODULES_SUBPANEL, mimicking the format in the layoutdefs.php * @return array An array of subpanel definitions, keyed by module */ function buildSubpanelDefinitions () { $subpanelDefinitions = array ( ) ; if (!$this->relationship_only) { $subpanelDefinitions [ $this->rhs_module ] = $this->getSubpanelDefinition ( $this->relationship_name, $this->lhs_module, $this->lhs_subpanel, $this->getLeftModuleSystemLabel() ) ; $subpanelDefinitions [ $this->lhs_module ] = $this->getSubpanelDefinition ( $this->relationship_name, $this->rhs_module, $this->rhs_subpanel, $this->getRightModuleSystemLabel() ) ; } return $subpanelDefinitions ; } /* * @return array An array of field definitions, ready for the vardefs, keyed by module */ function buildVardefs ( ) { $vardefs = array ( ) ; $vardefs [ $this->rhs_module ] [] = $this->getLinkFieldDefinition ( $this->lhs_module, $this->relationship_name, false, 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getLeftModuleSystemLabel() ) . '_TITLE' ) ; $vardefs [ $this->lhs_module ] [] = $this->getLinkFieldDefinition ( $this->rhs_module, $this->relationship_name, false, 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getRightModuleSystemLabel() ) . '_TITLE' ) ; return $vardefs ; } /* * @return array An array of relationship metadata definitions */ function buildRelationshipMetaData () { return array( $this->lhs_module => $this->getRelationshipMetaData ( MB_MANYTOMANY ) ) ; } }