ListStrategy.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
12 
13 /**
14  * ListStrategy defines the interface for classes that
15  * retrieve value lists.
16  *
17  * @author ingo herwig <ingo@wemove.com>
18  */
19 interface ListStrategy {
20 
21  /**
22  * Get a list of key/value pairs defined by the given configuration.
23  * @param $options Associative array of implementation specific configuration
24  * @param $valuePattern A regular expression pattern that the returned values should match (optional)
25  * @param $key A key value, if only one item should be returned (optional)
26  * @param $language The language if the values should be localized. Optional,
27  * default is Localization::getDefaultLanguage()
28  * @return An assoziative array containing the key/value pairs
29  */
30  public function getList($options, $valuePattern=null, $key=null, $language=null);
31 
32  /**
33  * Check if the list values are static or changing.
34  * @param $options Associative array of implementation specific configuration
35  * @return Boolean
36  */
37  public function isStatic($options);
38 }
39 ?>
getList($options, $valuePattern=null, $key=null, $language=null)
Get a list of key/value pairs defined by the given configuration.
ListStrategy defines the interface for classes that retrieve value lists.
isStatic($options)
Check if the list values are static or changing.