FilterForReportFormToDataProviderMetadataAdapter Class Reference

Public Member Functions

 __construct (FilterForReportForm $filter)
 getAdaptedMetadata ()

Protected Member Functions

 resolveValueForOperator ()
 resolveClausesAndStructure ()
 resolveDynamicallyDerivedAttributeClauseAndStructure ()
 resolveRelationReportedAsAttributeClauseAndStructure ()
 resolveNonRelationNonDerivedAttributeClauseAndStructure ()
 resolveDateAttributeClauseAndStructure ()
 getDateOrDateTimeRulesClassName ()
 resolveForValueByRules ($rulesClassName, $attributesAndRelations, $value)
 resolveNumericAttributeClauseAndStructure ()
 resolveCurrencyValueAttributeClauseAndStructure ()
 resolveDropDownVariantAttributeClauseAndStructure ()
 resolveTextAttributeClauseAndStructure ()
 resolveBooleanAttributeClauseAndStructure ()
 resolveRelatedIdAttributeClauseAndStructure ()
 getRealAttributeName ()
 resetClausesAndStructure ()
 makeModelRelationsAndAttributesToReportAdapter ()

Protected Attributes

 $filter
 $structure
 $structureCount = 1
 $clauses = array()
 $modelRelationsAndAttributesToReportAdapter

Detailed Description

Helper class for adapting a FilterForReportForm into search metadata

Definition at line 40 of file FilterForReportFormToDataProviderMetadataAdapter.php.


Constructor & Destructor Documentation

__construct ( FilterForReportForm filter  ) 
Parameters:
FilterForReportForm $filter

Definition at line 70 of file FilterForReportFormToDataProviderMetadataAdapter.php.


Member Function Documentation

getAdaptedMetadata (  ) 
Returns:
array

Definition at line 79 of file FilterForReportFormToDataProviderMetadataAdapter.php.

getDateOrDateTimeRulesClassName (  )  [protected]
Returns:
string
Exceptions:
NotSupportedException if the displayElementType is not Date or DateTime, which means it is invalid

Definition at line 211 of file FilterForReportFormToDataProviderMetadataAdapter.php.

resolveForValueByRules ( rulesClassName,
attributesAndRelations,
value 
) [protected]

Utilized to process date and dateTime clauses properly

Parameters:
string $rulesClassName
array $attributesAndRelations
mixed $value
Returns:
mixed

Definition at line 236 of file FilterForReportFormToDataProviderMetadataAdapter.php.

getRealAttributeName (  )  [protected]
Returns:
string

Definition at line 368 of file FilterForReportFormToDataProviderMetadataAdapter.php.

makeModelRelationsAndAttributesToReportAdapter (  )  [protected]

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Apr 23 07:10:25 2017