DynamicSearchDataProviderMetadataAdapter Class Reference

Public Member Functions

 __construct (array $metadata, SearchForm $model, $userId, $sanitizedDynamicSearchAttributes, $dynamicStructure)
 getAdaptedDataProviderMetadata ()

Static Public Member Functions

static numberToLetter ($num, $uppercase=false)

Data Fields

const NOT_USED_STRUCTURE_POSITION = 'notUsed'

Protected Member Functions

 processData ($searchAttributes, &$clauseCount, &$correctlyPositionedClauses, &$metadata)

Static Protected Member Functions

static getAlphaCodeByInteger ($integer)
static resolveUnsetAndGetSructurePosition (&$searchAttribute)
static resolveUnsetAttributeIndexOrDerivedType (&$searchAttribute)

Protected Attributes

 $metadata
 $model
 $userId
 $sanitizedDynamicSearchAttributes
 $dynamicStructure

Detailed Description

Adapter class to manipulate dynamic search information for metadata.

Definition at line 40 of file DynamicSearchDataProviderMetadataAdapter.php.


Member Function Documentation

getAdaptedDataProviderMetadata (  ) 

Creates where clauses and adds structure information to existing DataProvider metadata.

Definition at line 73 of file DynamicSearchDataProviderMetadataAdapter.php.

static getAlphaCodeByInteger ( integer  )  [static, protected]
Returns:
6 digit alpha code that can be swapped later for the proper structure.
Parameters:
Integer $integer

Definition at line 127 of file DynamicSearchDataProviderMetadataAdapter.php.

static numberToLetter ( num,
uppercase = false 
) [static]

Public for testing purposes Takes a number and converts it to a-z,aa-zz,aaa-zzz, etc with uppercase option

Parameters:
int number to convert
bool upper case the letter on return?
Returns:
string letters from number input

Definition at line 186 of file DynamicSearchDataProviderMetadataAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Aug 21 07:10:24 2017