+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2018
*/
require_once 'HTML/QuickForm/Rule/Email.php';
}
/**
- * @param $value
+ * Strip thousand separator from a money string.
+ *
+ * Note that this should be done at the form layer. Once we are processing
+ * money at the BAO or processor layer we should be working with something that
+ * is already in a normalised format.
+ *
+ * @param string $value
*
- * @return mixed
+ * @return string
*/
public static function cleanMoney($value) {
// first remove all white space
* @param string $key Extension Key to check
* @return bool
*/
- public static function checkExtesnionKeyIsValid($key = NULL) {
+ public static function checkExtensionKeyIsValid($key = NULL) {
if (!empty($key) && !preg_match('/^[0-9a-zA-Z._-]+$/', $key)) {
return FALSE;
}