modules/ModuleBuilder/parsers/relationships/OneToManyRelationship.php

Show: inherited
Table of Contents

\OneToManyRelationship

Package:
Parent(s)
\AbstractRelationship
Children
\ActivitiesRelationship

Properties

Propertyprotected  $definition= ''
inheritedInherited from: \AbstractRelationship::$$definition
Details
Type
n/a
Inherited_from
\AbstractRelationship::$$definition  
Propertypublic  $definitionKeys= 'array ( // atttributes of this relationship - here in the definition so they are preserved across saves and loads 'for_activities', 'is_custom', 'from_studio', 'readonly' , // a readonly relationship cannot be Built by subclasses of AbstractRelationships 'deleted' , // a deleted relationship will not be built, and if it had been built previously the built relationship will be removed 'relationship_only' , // means that we won't build any UI components for this relationship - required while the Subpanel code is restricted to one subpanel only from any module, and probably useful afterwards also for developers to build relationships for new code - it's a feature! // keys not found in Relationships table 'label' , // optional 'rhs_label', // optional 'lhs_label', // optional 'lhs_subpanel' , // subpanel FROM the lhs_module to display on the rhs_module detail view 'rhs_subpanel' , // subpanel FROM the rhs_module to display on the lhs_module detail view // keys from Relationships table 'relationship_name' , 'lhs_module' , 'lhs_table' , 'lhs_key' , 'rhs_module' , 'rhs_table' , 'rhs_key' , 'join_table' , 'join_key_lhs' , 'join_key_rhs' , 'relationship_type' , 'relationship_role_column' , 'relationship_role_column_value' , 'reverse' )'
staticinheritedInherited from: \AbstractRelationship::$$definitionKeys
Default valuearray ( // atttributes of this relationship - here in the definition so they are preserved across saves and loads 'for_activities', 'is_custom', 'from_studio', 'readonly' , // a readonly relationship cannot be Built by subclasses of AbstractRelationships 'deleted' , // a deleted relationship will not be built, and if it had been built previously the built relationship will be removed 'relationship_only' , // means that we won't build any UI components for this relationship - required while the Subpanel code is restricted to one subpanel only from any module, and probably useful afterwards also for developers to build relationships for new code - it's a feature! // keys not found in Relationships table 'label' , // optional 'rhs_label', // optional 'lhs_label', // optional 'lhs_subpanel' , // subpanel FROM the lhs_module to display on the rhs_module detail view 'rhs_subpanel' , // subpanel FROM the rhs_module to display on the lhs_module detail view // keys from Relationships table 'relationship_name' , 'lhs_module' , 'lhs_table' , 'lhs_key' , 'rhs_module' , 'rhs_table' , 'rhs_key' , 'join_table' , 'join_key_lhs' , 'join_key_rhs' , 'relationship_type' , 'relationship_role_column' , 'relationship_role_column_value' , 'reverse' )Details
Type
n/a
Inherited_from
\AbstractRelationship::$$definitionKeys  

Methods

methodpublic__construct(  $definition ) : void

Parameters
Name Type Description
$definition
methodpublicbuildFieldsToLayouts( ) : void

methodpublicbuildLabels(  $update = false ) : void
inherited

Inherited from: \AbstractRelationship::buildLabels()
Parameters
Name Type Description
$update
methodpublicbuildRelationshipMetaData( ) : void

methodpublicbuildSubpanelDefinitions( ) : void

methodpublicbuildVardefs( ) : void

methodpublicdelete( ) : void
inherited

Inherited from: \AbstractRelationship::delete()
methodpublicdeleted( ) : void
inherited

Inherited from: \AbstractRelationship::deleted()
methodpublicgetActivitiesSubModuleRelationshipName(  $activitiesSubModuleName ) : void
Parameters
Name Type Description
$activitiesSubModuleName
methodpublicgetDefinition( ) : void
inherited

Inherited from: \AbstractRelationship::getDefinition()
methodpublicgetIDName(  $sourceModule ) : void
inherited

Inherited from: \AbstractRelationship::getIDName()
Parameters
Name Type Description
$sourceModule
methodpublicgetJoinKeyLHS( ) : void
inherited

Inherited from: \AbstractRelationship::getJoinKeyLHS()
methodpublicgetJoinKeyRHS( ) : void
inherited

Inherited from: \AbstractRelationship::getJoinKeyRHS()
methodpublicgetLabels( ) : array
inherited

Returns a key=>value set of labels used in this relationship for use when desplaying the relationship in MB

Inherited from: \AbstractRelationship::getLabels()
Returns
Type Description
array labels used in this relationship
methodpublicgetLeftModuleSystemLabel( ) : void
methodprotectedgetLink2FieldDefinition(  $sourceModule,  $relationshipName,  $right_side = false,  $vname = "" ) : void
Parameters
Name Type Description
$sourceModule
$relationshipName
$right_side
$vname
methodprotectedgetLinkFieldDefinition(  $sourceModule,  $relationshipName,  $right_side = false,  $vname = "",  $id_name = false ) : void
Parameters
Name Type Description
$sourceModule
$relationshipName
$right_side
$vname
$id_name
methodpublicgetName( ) : void
inherited

Inherited from: \AbstractRelationship::getName()
methodprotectedgetRelateFieldDefinition(  $sourceModule,  $relationshipName,  $vnameLabel = '' ) : void
Parameters
Name Type Description
$sourceModule
$relationshipName
$vnameLabel
methodpublicgetRelationshipMetaData(  $relationshipType,  $checkExisting = true ) : void
Parameters
Name Type Description
$relationshipType
$checkExisting
methodpublicgetRightModuleSystemLabel( ) : void
methodprotectedgetSubpanelDefinition(  $relationshipName,  $sourceModule,  $subpanelName,  $titleKeyName = '',  $source = "" ) : void
Parameters
Name Type Description
$relationshipName
$sourceModule
$subpanelName
$titleKeyName
$source
methodprotectedgetTablename(  $moduleName ) : void
inherited

Inherited from: \AbstractRelationship::getTablename()
Parameters
Name Type Description
$moduleName
methodpublicgetTitleKey(  $left = false ) : void
inherited

Inherited from: \AbstractRelationship::getTitleKey()
Parameters
Name Type Description
$left
methodpublicgetType( ) : void
inherited

Inherited from: \AbstractRelationship::getType()
methodpublicgetValidDBName(  $name,  $ensureUnique = true ) : void
staticinherited

Inherited from: \AbstractRelationship::getValidDBName()
Parameters
Name Type Description
$name
$ensureUnique
methodpublicparseRelationshipType(  $type ) : void
staticinherited

Inherited from: \AbstractRelationship::parseRelationshipType()
Parameters
Name Type Description
$type
methodpublicreadonly( ) : void
inherited

Inherited from: \AbstractRelationship::readonly()
methodpublicrelationship_only( ) : void
inherited

Inherited from: \AbstractRelationship::relationship_only()
methodpublicsetFromStudio( ) : void
inherited

Inherited from: \AbstractRelationship::setFromStudio()
methodpublicsetName(  $relationshipName ) : void
inherited

Inherited from: \AbstractRelationship::setName()
Parameters
Name Type Description
$relationshipName
methodpublicsetReadonly(  $set = true ) : void
inherited

Inherited from: \AbstractRelationship::setReadonly()
Parameters
Name Type Description
$set
methodpublicsetRelationship_only( ) : void
Documentation was generated by DocBlox 0.18.1.