diff options
Diffstat (limited to 'SemanticForms/includes/forminputs/SF_MultiEnumInput.php')
-rw-r--r-- | SemanticForms/includes/forminputs/SF_MultiEnumInput.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/SemanticForms/includes/forminputs/SF_MultiEnumInput.php b/SemanticForms/includes/forminputs/SF_MultiEnumInput.php new file mode 100644 index 00000000..7842ca6c --- /dev/null +++ b/SemanticForms/includes/forminputs/SF_MultiEnumInput.php @@ -0,0 +1,36 @@ +<?php +/** + * File holding the SFMultiEnumInput class + * + * @file + * @ingroup SF + */ + +/** + * The SFMultiEnumInput class. + * The base class for every form input that holds a list of elements, each + * one from a pre-set enumeration of values. + * + * @ingroup SFFormInput + */ +abstract class SFMultiEnumInput extends SFEnumInput { + + public static function getOtherPropTypesHandled() { + return array(); + } + + public static function getOtherPropTypeListsHandled() { + return array( 'enumeration' ); + } + + public static function getParameters() { + $params = parent::getParameters(); + $params[] = array( + 'name' => 'delimiter', + 'type' => 'string', + 'description' => wfMessage( 'sf_forminputs_delimiter' )->text() + ); + return $params; + } +} + |