1: <?php
 2: 
 3: /**
 4:  *
 5:  * @package Plugin
 6:  * @subpackage FormAssistant
 7:  * @version SVN Revision $Rev:$
 8:  * @author marcus.gnass
 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.gnass
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: