ConversationsSearchDataProviderMetadataAdapter Class Reference

Inheritance diagram for ConversationsSearchDataProviderMetadataAdapter:
SearchDataProviderMetadataAdapter DataProviderMetadataAdapter

Public Member Functions

 __construct ($model, $userId, $metadata, $type)
 getAdaptedMetadata ($appendStructureAsAnd=true)

Data Fields

const LIST_TYPE_CREATED = 1
const LIST_TYPE_PARTICIPANT = 2
const LIST_TYPE_CLOSED = 3

Protected Attributes

 $type

Detailed Description

Adapter class to handle special metadata needs of conversation listviews. This is because there is a relation where clause with ConversationParticipants person, which is difficult to do via the searchAttributes array

Definition at line 41 of file ConversationsSearchDataProviderMetadataAdapter.php.


Constructor & Destructor Documentation

__construct ( model,
userId,
metadata,
type 
)

Override to add passing in type

Definition at line 66 of file ConversationsSearchDataProviderMetadataAdapter.php.


Member Function Documentation

getAdaptedMetadata ( appendStructureAsAnd = true  ) 

Convert metadata which is just an array of posted searchAttributes into metadata that is readable by the RedBeanModelDataProvider

Definition at line 78 of file ConversationsSearchDataProviderMetadataAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun May 28 07:10:24 2017