1: <?php
2:
3: /**
4: * This file contains the PifaExternalOptionsDatasourceInterface class.
5: *
6: * @package Plugin
7: * @subpackage FormAssistant
8: * @author Marcus Gnaß <marcus.gnass@4fb.de>
9: * @copyright four for business AG
10: * @link http://www.4fb.de
11: */
12:
13: // assert CONTENIDO framework
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: * Abstract class to read labels and values to be used for PIFA field options
18: * from an external datasource.
19: *
20: * @author Marcus Gnaß <marcus.gnass@4fb.de>
21: */
22: abstract class PifaExternalOptionsDatasourceInterface {
23:
24: /**
25: * Gets all option labels.
26: *
27: * @return array of labels to be used for PIFA field options
28: */
29: public abstract function getOptionLabels();
30:
31: /**
32: * Gets all option values.
33: *
34: * @return array of values to be used for PIFA field options
35: */
36: public abstract function getOptionValues();
37: }
38: