DisplayAttributeReportItemQueryBuilder Class Reference

Inheritance diagram for DisplayAttributeReportItemQueryBuilder:
ReportItemQueryBuilder

Public Member Functions

 __construct (ComponentForReportForm $componentForm, RedBeanModelJoinTablesQueryAdapter $joinTablesAdapter, ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter, RedBeanModelSelectQueryAdapter $selectQueryAdapter, $currencyConversionType=null)

Protected Member Functions

 isDisplayAttributeMadeViaSelect ()
 resolveFinalContent ($modelAttributeToDataProviderAdapter, $onTableAliasName=null)
 resolveDisplayAttributeColumnName ($modelAttributeToDataProviderAdapter, $onTableAliasName=null)
 resolveDisplayAttributeForPrematurelyStoppingJoins ($modelAttributeToDataProviderAdapter, $onTableAliasName=null)
 resolveDisplayAttributeForProcessingAllJoins (ModelJoinBuilder $builder, $modelAttributeToDataProviderAdapter, $onTableAliasName=null)
 resolveColumnName (RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter)
 resolvedModelClassName (RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter)
 resolvedTableAliasName (RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter, ModelJoinBuilder $builder)
 makeModelAttributeToDataProviderAdapter ($modelToReportAdapter, $attribute)
 shouldPrematurelyStopBuildingJoinsForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter)
 resolveCastingHintForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter, $modelClassName, $realAttributeName)
 makeModelAttributeToDataProviderAdapterForRelationReportedAsAttribute ($modelToReportAdapter, $attribute)

Protected Attributes

 $selectQueryAdapter

Detailed Description

Populate the RedBeanModelSelectQueryAdapter with the necessary columns or calculations to select

Definition at line 40 of file DisplayAttributeReportItemQueryBuilder.php.


Constructor & Destructor Documentation

__construct ( ComponentForReportForm componentForm,
RedBeanModelJoinTablesQueryAdapter joinTablesAdapter,
ModelRelationsAndAttributesToReportAdapter modelToReportAdapter,
RedBeanModelSelectQueryAdapter selectQueryAdapter,
currencyConversionType = null 
)
Parameters:
ComponentForReportForm $componentForm
RedBeanModelJoinTablesQueryAdapter $joinTablesAdapter
ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter
RedBeanModelSelectQueryAdapter $selectQueryAdapter
null | string $currencyConversionType

Definition at line 54 of file DisplayAttributeReportItemQueryBuilder.php.


Member Function Documentation

isDisplayAttributeMadeViaSelect (  )  [protected]
Returns:
bool

Definition at line 67 of file DisplayAttributeReportItemQueryBuilder.php.

resolveFinalContent ( modelAttributeToDataProviderAdapter,
onTableAliasName = null 
) [protected]
Parameters:
$modelAttributeToDataProviderAdapter 
null | string $onTableAliasName

Definition at line 87 of file DisplayAttributeReportItemQueryBuilder.php.

resolveDisplayAttributeColumnName ( modelAttributeToDataProviderAdapter,
onTableAliasName = null 
) [protected]
Parameters:
$modelAttributeToDataProviderAdapter 
null | string $onTableAliasName

Definition at line 96 of file DisplayAttributeReportItemQueryBuilder.php.

resolveDisplayAttributeForPrematurelyStoppingJoins ( modelAttributeToDataProviderAdapter,
onTableAliasName = null 
) [protected]
Parameters:
$modelAttributeToDataProviderAdapter 
null | string $onTableAliasName

Definition at line 117 of file DisplayAttributeReportItemQueryBuilder.php.

resolveDisplayAttributeForProcessingAllJoins ( ModelJoinBuilder builder,
modelAttributeToDataProviderAdapter,
onTableAliasName = null 
) [protected]
Parameters:
ModelJoinBuilder $builder
$modelAttributeToDataProviderAdapter 
null | string $onTableAliasName
Exceptions:
NotSupportedException if the display attribute is made via select like SUM(integer) but the adapter being used is not a summation adapter

Definition at line 138 of file DisplayAttributeReportItemQueryBuilder.php.

resolveColumnName ( RedBeanModelAttributeToDataProviderAdapter modelAttributeToDataProviderAdapter  )  [protected]
Parameters:
RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter
Returns:
string

Definition at line 174 of file DisplayAttributeReportItemQueryBuilder.php.

resolvedModelClassName ( RedBeanModelAttributeToDataProviderAdapter modelAttributeToDataProviderAdapter  )  [protected]
Parameters:
RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter
Returns:
string

Definition at line 190 of file DisplayAttributeReportItemQueryBuilder.php.

resolvedTableAliasName ( RedBeanModelAttributeToDataProviderAdapter modelAttributeToDataProviderAdapter,
ModelJoinBuilder builder 
) [protected]
Parameters:
RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter
ModelJoinBuilder $builder
Returns:
string

Definition at line 207 of file DisplayAttributeReportItemQueryBuilder.php.

makeModelAttributeToDataProviderAdapter ( modelToReportAdapter,
attribute 
) [protected]
Parameters:
$modelToReportAdapter 
string $attribute
Returns:
DerivedRelationViaCastedUpRedBeanModelAttributeToDataProviderAdapter|RedBeanModelAttributeToDataProviderAdapter

Reimplemented from ReportItemQueryBuilder.

Definition at line 225 of file DisplayAttributeReportItemQueryBuilder.php.

shouldPrematurelyStopBuildingJoinsForAttribute ( modelToReportAdapter,
modelAttributeToDataProviderAdapter 
) [protected]
Parameters:
$modelToReportAdapter 
$modelAttributeToDataProviderAdapter 
Returns:
bool

Reimplemented from ReportItemQueryBuilder.

Definition at line 247 of file DisplayAttributeReportItemQueryBuilder.php.

resolveCastingHintForAttribute ( modelToReportAdapter,
modelAttributeToDataProviderAdapter,
modelClassName,
realAttributeName 
) [protected]
Parameters:
$modelToReportAdapter 
$modelAttributeToDataProviderAdapter 
string $modelClassName
string $realAttributeName

Reimplemented from ReportItemQueryBuilder.

Definition at line 298 of file DisplayAttributeReportItemQueryBuilder.php.

makeModelAttributeToDataProviderAdapterForRelationReportedAsAttribute ( modelToReportAdapter,
attribute 
) [protected]
Parameters:
$modelToReportAdapter 
string $attribute
Returns:
RedBeanModelAttributeToDataProviderAdapter

Reimplemented from ReportItemQueryBuilder.

Definition at line 314 of file DisplayAttributeReportItemQueryBuilder.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Mar 29 07:10:25 2017