+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*/
class CRM_Utils_Type {
const
return $output;
}
+ /**
+ * Get list of avaliable Data Tupes for Option Groups
+ *
+ * @return array
+ */
+ public static function dataTypes() {
+ $types = array(
+ 'Integer',
+ 'String',
+ 'Date',
+ 'Time',
+ 'Timestamp',
+ 'Money',
+ 'Email',
+ );
+ return array_combine($types, $types);
+ }
+
}