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

Public Member Functions

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

Protected Member Functions

 makeModelAttributeToDataProviderAdapterForRelationReportedAsAttribute ($modelToReportAdapter, $attribute)
 
 resolveComponentAttributeStringContentForNonNestedAttribute ()
 
 resolveComponentAttributeStringContentForNestedAttribute ()
 
 makeModelAttributeToDataProviderAdapter ($modelToReportAdapter, $attribute)
 
 resolveCastingHintForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter, $modelClassName, $realAttributeName)
 
 shouldPrematurelyStopBuildingJoinsForAttribute ($modelToReportAdapter, $modelAttributeToDataProviderAdapter)
 
 getAttributeClauseQueryStringExtraPart ($tableAliasName)
 

Static Protected Member Functions

static resolveRelatedAttributeForMakingAdapter ($modelToReportAdapter, $attribute)
 
static makeModelAttributeToDataProviderAdapterForDynamicallyDerivedAttribute ($modelToReportAdapter, $attribute)
 

Protected Attributes

 $componentForm
 
 $modelToReportAdapter
 
 $joinTablesAdapter
 
 $currencyConversionType
 

Detailed Description

Definition at line 40 of file ReportItemQueryBuilder.php.

Constructor & Destructor Documentation

__construct ( ComponentForReportForm  $componentForm,
RedBeanModelJoinTablesQueryAdapter  $joinTablesAdapter,
ModelRelationsAndAttributesToReportAdapter  $modelToReportAdapter,
  $currencyConversionType = null 
)
Parameters
ComponentForReportForm$componentForm
RedBeanModelJoinTablesQueryAdapter$joinTablesAdapter
ModelRelationsAndAttributesToReportAdapter$modelToReportAdapter
null  |  integer$currencyConversionType

Definition at line 68 of file ReportItemQueryBuilder.php.

Member Function Documentation

static resolveRelatedAttributeForMakingAdapter (   $modelToReportAdapter,
  $attribute 
)
staticprotected
Parameters
$modelToReportAdapter
string$attribute
Returns
null|string

Definition at line 85 of file ReportItemQueryBuilder.php.

static makeModelAttributeToDataProviderAdapterForDynamicallyDerivedAttribute (   $modelToReportAdapter,
  $attribute 
)
staticprotected
Parameters
$modelToReportAdapter
string$attribute
Returns
RedBeanModelAttributeToDataProviderAdapter

Definition at line 105 of file ReportItemQueryBuilder.php.

resolveComponentAttributeStringContent ( )
Returns
string
Exceptions
NotSupportedExceptionif the $attributeAndRelationData

Definition at line 117 of file ReportItemQueryBuilder.php.

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

Definition at line 139 of file ReportItemQueryBuilder.php.

resolveComponentAttributeStringContentForNonNestedAttribute ( )
protected
Returns
string

Definition at line 151 of file ReportItemQueryBuilder.php.

resolveComponentAttributeStringContentForNestedAttribute ( )
protected
Returns
string
Exceptions
NotSupportedException

Definition at line 163 of file ReportItemQueryBuilder.php.

makeModelAttributeToDataProviderAdapter (   $modelToReportAdapter,
  $attribute 
)
protected
Parameters
$modelToReportAdapter
$attribute
Returns
DerivedRelationViaCastedUpRedBeanModelAttributeToDataProviderAdapter| InferredRedBeanModelAttributeToDataProviderAdapter|RedBeanModelAttributeToDataProviderAdapter

Definition at line 224 of file ReportItemQueryBuilder.php.

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

Definition at line 274 of file ReportItemQueryBuilder.php.

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

Definition at line 289 of file ReportItemQueryBuilder.php.

getAttributeClauseQueryStringExtraPart (   $tableAliasName)
protected
Parameters
string$tableAliasName
Returns
string

Definition at line 301 of file ReportItemQueryBuilder.php.


The documentation for this class was generated from the following file:
Generated on Mon Jun 1 2020 07:11:00