All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields
MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules Class Reference
Inheritance diagram for MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules:
SearchFormAttributeMappingRules

Static Public Member Functions

static resolveValueDataIntoUsableValue ($value)
 
static getValidValueTypes ()
 
static getValueTypesAndLabels ()
 
static resolveAttributesAndRelations ($attributeName, &$attributeAndRelations, $value)
 
static getValueTypesRequiringSelectUserInput ()
 
static getValueTypesWhereValueIsRequired ()
 
static getValueTypesWhereValueIsNotRequired ()
 
- Static Public Member Functions inherited from SearchFormAttributeMappingRules
static resolveValueDataIntoUsableValue ($value)
 
static resolveAttributesAndRelations ($attributeName, &$attributeAndRelations, $value)
 
static getIgnoredSavableMetadataRules ()
 

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.

Parameters
mixed$value
Returns
mixed

Definition at line 56 of file MixedLoggedInUserTypesAndUsersSearchFormAttributeMappingRules.php.

static getValidValueTypes ( )
static
static getValueTypesAndLabels ( )
static
static resolveAttributesAndRelations (   $attributeName,
$attributeAndRelations,
  $value 
)
static

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

Parameters
string$attributeName
array$attributeAndRelations
mixed$value

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:
Generated on Tue Jan 28 2020 07:10:35