1 | <?php |
||
21 | class SelectExclusionStrategy implements ExclusionStrategyInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var Array $selectedFields |
||
25 | */ |
||
26 | protected $selectedFields; |
||
27 | |||
28 | /** |
||
29 | * @var Boolean $isSelect |
||
30 | */ |
||
31 | protected $isSelect; |
||
32 | |||
33 | /** |
||
34 | * Injection of the global request_stack to access the selected Fields via Query-Object |
||
35 | * @param RequestStack $requestStack the global request_stack |
||
36 | * @return void |
||
37 | */ |
||
38 | 4 | public function getSelectedFieldsFromRQL(RequestStack $requestStack) |
|
67 | |||
68 | /** |
||
69 | * @InheritDoc: Whether the class should be skipped. |
||
70 | * @param ClassMetadata $metadata the ClassMetadata for the Class of the property to be serialized |
||
71 | * @param Context $navigatorContext the context for serialization |
||
72 | * @return boolean |
||
73 | */ |
||
74 | public function shouldSkipClass(ClassMetadata $metadata, Context $navigatorContext) |
||
78 | |||
79 | /** |
||
80 | * @InheritDoc: Whether the property should be skipped. |
||
81 | * Skipping properties on first level who are not selected if there is a select in rql. |
||
82 | * @param PropertyMetadata $property the property to be serialized |
||
83 | * @param Context $context the context for serialization |
||
84 | * @return boolean |
||
85 | */ |
||
86 | public function shouldSkipProperty(PropertyMetadata $property, Context $context) |
||
98 | } |
||
99 |