File size: 936 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php

class EntityFacetInterfaceRequest extends EntityBase
{
    public $searchText = '';
    public $selectedFacetsString = ''; // string of selected facet groups and

    // items in format:
    // groupkey1::groupdesc1:::itemkey1::itemdesc1,groupkey2::groupdesc2:::itemkey2::itemdesc2,
    // groupkey3::groupdesc3:::itemkey3::itemdesc3
    // var $selectedFacetFields = array();
    // var $selectedFacetTypes = array();

    private function __construct()
    {
        
    }

    static function createEmpty()
    {
        $obj = new EntityFacetInterfaceRequest ();
        return $obj;
    }

    static function createForRequest($data)
    {
        $obj = new EntityFacetInterfaceRequest ();

        $obj->initializeObject($data);

        $requiredFields = array(
            "searchText",
            "selectedFacetsString"
        );

        $obj->validateRequiredFields($requiredFields);

        return $obj;
    }
}