MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules Class Reference

Inheritance diagram for MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules:

Static Public Member Functions

static resolveValueDataIntoUsableValue ($value)
static getValidValueTypes ()
static getValueTypesAndLabels ()
static resolveAttributesAndRelations ($attributeName, &$attributeAndRelations, $value)
static getValueTypesRequiringSelectUserInput ()
static getValueTypesWhereValueIsRequired ()
static getValueTypesWhereValueIsNotRequired ()

Data Fields

const TYPE_SELECT_USER = 'Select User'
const TYPE_LOGGED_IN_USER = 'Logged In User'
const NAME_VALUE_FOR_LOGGED_IN_USER = "Logged In User"

Detailed Description

Rule used in search form to define how the different date types are proceesed.

Definition at line 40 of file MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules.php.

Member Function Documentation

static resolveValueDataIntoUsableValue ( value  )  [static]

In the event that the type is BEFORE or AFTER, and the firstDate value is not populated, it will be treated as null, and the search on this attribute will be ignored. At some point in the future the search form could have validation added, so that the empty firstDate combined with a type of BEFORE or AFTER would not get this far, but for now this is the easiest approach to ensuring a valid BEFORE or AFTER value.

mixed $value

Reimplemented from SearchFormAttributeMappingRules.

Definition at line 56 of file MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules.php.

static getValidValueTypes (  )  [static]

Definition at line 95 of file MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules.php.

static getValueTypesAndLabels (  )  [static]
static resolveAttributesAndRelations ( attributeName,
&$  attributeAndRelations,
) [static]

The value['type'] deterimines how the attributeAndRelations is structured.

string $attributeName
array $attributeAndRelations
mixed $value

Reimplemented from SearchFormAttributeMappingRules.

Definition at line 120 of file MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules.php.

static getValueTypesRequiringSelectUserInput (  )  [static]
static getValueTypesWhereValueIsRequired (  )  [static]

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Nov 14 07:11:03 2019