modules/ModuleBuilder/parsers/relationships/ActivitiesRelationship.php
\ActivitiesRelationship
Package:
- Parent(s)
- \OneToManyRelationship < \AbstractRelationship
Properties
$definition= ''
Details
- Type
- n/a
- Inherited_from
- \AbstractRelationship::$$definition
- Inherited_from
- \OneToManyRelationship::$$definition
$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\OneToManyRelationship::$$definitionKeys
Default value
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' )
Details- Type
- n/a
- Inherited_from
- \AbstractRelationship::$$definitionKeys
- Inherited_from
- \OneToManyRelationship::$$definitionKeys
Methods
buildActivitiesSubpanelDefinition(
$relationshipName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$relationshipName |
buildHistorySubpanelDefinition(
$relationshipName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$relationshipName |
buildWirelessSubpanelDefinitions(
)
:
void
inherited
Inherited from:
\OneToManyRelationship::buildWirelessSubpanelDefinitions()
getActivitiesSubModuleRelationshipName(
$activitiesSubModuleName
)
:
void
inherited
Inherited from:
\AbstractRelationship::getActivitiesSubModuleRelationshipName()\OneToManyRelationship::getActivitiesSubModuleRelationshipName()
Parameters
Name | Type | Description |
---|---|---|
$activitiesSubModuleName |
getDefinition(
)
:
void
inherited
Inherited from:
\AbstractRelationship::getDefinition()\OneToManyRelationship::getDefinition()
getJoinKeyLHS(
)
:
void
inherited
Inherited from:
\AbstractRelationship::getJoinKeyLHS()\OneToManyRelationship::getJoinKeyLHS()
getJoinKeyRHS(
)
:
void
inherited
Inherited from:
\AbstractRelationship::getJoinKeyRHS()\OneToManyRelationship::getJoinKeyRHS()
getLabels(
)
:
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()\OneToManyRelationship::getLabels()
Returns
Type | Description |
---|---|
array | labels used in this relationship |
getLeftModuleSystemLabel(
)
:
void
inherited
Inherited from:
\AbstractRelationship::getLeftModuleSystemLabel()\OneToManyRelationship::getLeftModuleSystemLabel()
getLink2FieldDefinition(
$sourceModule, $relationshipName, $right_side
=
false, $vname
=
""
)
:
void
inherited
Inherited from:
\AbstractRelationship::getLink2FieldDefinition()\OneToManyRelationship::getLink2FieldDefinition()
Parameters
Name | Type | Description |
---|---|---|
$sourceModule | ||
$relationshipName | ||
$right_side | ||
$vname |
getLinkFieldDefinition(
$sourceModule, $relationshipName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$sourceModule | ||
$relationshipName |
getRelateFieldDefinition(
$sourceModule, $relationshipName, $vnameLabel
=
''
)
:
void
inherited
Inherited from:
\AbstractRelationship::getRelateFieldDefinition()\OneToManyRelationship::getRelateFieldDefinition()
Parameters
Name | Type | Description |
---|---|---|
$sourceModule | ||
$relationshipName | ||
$vnameLabel |
getRelationshipMetaData(
$relationshipType, $checkExisting
=
true
)
:
void
inherited
Inherited from:
\AbstractRelationship::getRelationshipMetaData()\OneToManyRelationship::getRelationshipMetaData()
Parameters
Name | Type | Description |
---|---|---|
$relationshipType | ||
$checkExisting |
getRightModuleSystemLabel(
)
:
void
inherited
Inherited from:
\AbstractRelationship::getRightModuleSystemLabel()\OneToManyRelationship::getRightModuleSystemLabel()
getSubpanelDefinition(
$relationshipName, $sourceModule, $subpanelName, $titleKeyName
=
'', $source
=
""
)
:
void
inherited
Inherited from:
\AbstractRelationship::getSubpanelDefinition()\OneToManyRelationship::getSubpanelDefinition()
Parameters
Name | Type | Description |
---|---|---|
$relationshipName | ||
$sourceModule | ||
$subpanelName | ||
$titleKeyName | ||
$source |
getTablename(
$moduleName
)
:
void
inherited
Inherited from:
\AbstractRelationship::getTablename()\OneToManyRelationship::getTablename()
Parameters
Name | Type | Description |
---|---|---|
$moduleName |
getValidDBName(
$name, $ensureUnique
=
true
)
:
void
staticinherited
Inherited from:
\AbstractRelationship::getValidDBName()\OneToManyRelationship::getValidDBName()
Parameters
Name | Type | Description |
---|---|---|
$name | ||
$ensureUnique |
getWirelessSubpanelDefinition(
$relationshipName, $sourceModule, $subpanelName, $titleKeyName
=
'', $source
=
""
)
:
void
inherited
Inherited from:
\AbstractRelationship::getWirelessSubpanelDefinition()\OneToManyRelationship::getWirelessSubpanelDefinition()
Parameters
Name | Type | Description |
---|---|---|
$relationshipName | ||
$sourceModule | ||
$subpanelName | ||
$titleKeyName | ||
$source |
parseRelationshipType(
$type
)
:
void
staticinherited
Inherited from:
\AbstractRelationship::parseRelationshipType()\OneToManyRelationship::parseRelationshipType()
Parameters
Name | Type | Description |
---|---|---|
$type |
relationship_only(
)
:
void
inherited
Inherited from:
\AbstractRelationship::relationship_only()\OneToManyRelationship::relationship_only()
setFromStudio(
)
:
void
inherited
Inherited from:
\AbstractRelationship::setFromStudio()\OneToManyRelationship::setFromStudio()
setRelationship_only(
)
:
void
inherited
Inherited from:
\AbstractRelationship::setRelationship_only()\OneToManyRelationship::setRelationship_only()