ListStrategy.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2015 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 $language The lanugage if the values should be localized. Optional,
25  * default is Localization::getDefaultLanguage()
26  * @return An assoziative array containing the key/value pairs
27  */
28  public function getList($options, $language=null);
29 
30  /**
31  * Check if the list values are static or changing.
32  * @param $options Associative array of implementation specific configuration
33  * @return Boolean
34  */
35  public function isStatic($options);
36 }
37 ?>
isStatic($options)
Check if the list values are static or changing.
ListStrategy defines the interface for classes that retrieve value lists.
getList($options, $language=null)
Get a list of key/value pairs defined by the given configuration.