1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\DataDefinition\Definition\View\Panel;
14:
15: /**
16: * Class DefaultSearchElementInformation.
17: *
18: * Default implementation of a search definition on properties.
19: *
20: * @package DcGeneral\DataDefinition\Definition\View\Panel
21: */
22: class DefaultSearchElementInformation implements SearchElementInformationInterface
23: {
24: /**
25: * The property names to search on.
26: *
27: * @var array
28: */
29: protected $properties;
30:
31: /**
32: * {@inheritDoc}
33: */
34: public function getName()
35: {
36: return 'search';
37: }
38:
39: /**
40: * {@inheritDoc}
41: */
42: public function addProperty($propertyName)
43: {
44: $this->properties[] = $propertyName;
45: }
46:
47: /**
48: * {@inheritDoc}
49: */
50: public function getPropertyNames()
51: {
52: return $this->properties;
53: }
54: }
55: