All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
DisplayAttributeReportItemQueryBuilder Class Reference
Inheritance diagram for DisplayAttributeReportItemQueryBuilder:
ReportItemQueryBuilder

Public Member Functions

 __construct (ComponentForReportForm $componentForm, RedBeanModelJoinTablesQueryAdapter $joinTablesAdapter, ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter, RedBeanModelSelectQueryAdapter $selectQueryAdapter, $currencyConversionType=null)
 
- Public Member Functions inherited from ReportItemQueryBuilder
 __construct (ComponentForReportForm $componentForm, RedBeanModelJoinTablesQueryAdapter $joinTablesAdapter, ModelRelationsAndAttributesToReportAdapter $modelToReportAdapter, $currencyConversionType=null)
 
 resolveComponentAttributeStringContent ()
 

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 Member Functions inherited from ReportItemQueryBuilder
 makeModelAttributeToDataProviderAdapterForRelationReportedAsAttribute ($modelToReportAdapter, $attribute)
 
 resolveComponentAttributeStringContentForNonNestedAttribute ()
 
 resolveComponentAttributeStringContentForNestedAttribute ()
 
 makeModelAttributeToDataProviderAdapter ($modelToReportAdapter, $attribute)
 
 resolveCastingHintForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter, $modelClassName, $realAttributeName)
 
 shouldPrematurelyStopBuildingJoinsForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter)
 
 getAttributeClauseQueryStringExtraPart ($tableAliasName)
 

Protected Attributes

 $selectQueryAdapter
 
- Protected Attributes inherited from ReportItemQueryBuilder
 $componentForm
 
 $modelToReportAdapter
 
 $joinTablesAdapter
 
 $currencyConversionType
 

Additional Inherited Members

- Static Protected Member Functions inherited from ReportItemQueryBuilder
static resolveRelatedAttributeForMakingAdapter ($modelToReportAdapter, $attribute)
 
static makeModelAttributeToDataProviderAdapterForDynamicallyDerivedAttribute ($modelToReportAdapter, $attribute)
 

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
NotSupportedExceptionif 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

Definition at line 225 of file DisplayAttributeReportItemQueryBuilder.php.

shouldPrematurelyStopBuildingJoinsForAttribute (   $modelToReportAdapter,
  $modelAttributeToDataProviderAdapter 
)
protected
Parameters
$modelToReportAdapter
$modelAttributeToDataProviderAdapter
Returns
bool

Definition at line 247 of file DisplayAttributeReportItemQueryBuilder.php.

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

Definition at line 300 of file DisplayAttributeReportItemQueryBuilder.php.

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

Definition at line 316 of file DisplayAttributeReportItemQueryBuilder.php.


The documentation for this class was generated from the following file:
Generated on Sun Feb 23 2020 07:10:43