class AssociationExtensionHelper implements AssociationExtensionInterface

Association Extension Helper

Methods

boolean
hasAssociationsSupport()

Checks if the extension supports associations

array
getItemTypes()

Get the item types

array
getAssociationList( string $typeName, int $itemId)

Get the associated items for an item

array
getType( string $typeName = '')

Get information about the type

array
getTypeFields( string $typeName)

Get information about the fields the type provides

array
getTypeSupport( string $typeName)

Get information about the fields the type provides

array
getTypeTables( string $typeName)

Get information about the tables the type use

array
getTypeJoins( string $typeName)

Get information about the table joins for the type

array
getTypeTitle( string $typeName)

Get the type title

string
getTypeFieldName( string $typeName, string $fieldName)

Get a table field name for a type

Details

boolean hasAssociationsSupport()

Checks if the extension supports associations

Return Value

boolean Supports the extension associations

array getItemTypes()

Get the item types

Return Value

array Array of item types

array getAssociationList( string $typeName, int $itemId)

Get the associated items for an item

Parameters

string $typeName The item type
int $itemId The id of item for which we need the associated items

Return Value

array

array getType( string $typeName = '')

Get information about the type

Parameters

string $typeName The item type

Return Value

array Array of item types

array getTypeFields( string $typeName)

Get information about the fields the type provides

Parameters

string $typeName The item type

Return Value

array Array of support information

array getTypeSupport( string $typeName)

Get information about the fields the type provides

Parameters

string $typeName The item type

Return Value

array Array of support information

array getTypeTables( string $typeName)

Get information about the tables the type use

Parameters

string $typeName The item type

Return Value

array Array of support information

array getTypeJoins( string $typeName)

Get information about the table joins for the type

Parameters

string $typeName The item type

Return Value

array Array of support information

array getTypeTitle( string $typeName)

Get the type title

Parameters

string $typeName The item type

Return Value

array Array of support information

string getTypeFieldName( string $typeName, string $fieldName)

Get a table field name for a type

Parameters

string $typeName The item type
string $fieldName The item type

Return Value

string