*
* @return bool
* true if valid date
- * @static
*/
public static function currentDate($date, $monthRequired = TRUE) {
$config = CRM_Core_Config::singleton();
*
* @return bool
* true if valid date
- * @static
*/
public static function mysqlDate($date) {
// allow date to be null
//CRM-14868
$currencySymbols = CRM_Core_PseudoConstant::get(
- 'CRM_Contribute_DAO_Contribution',
- 'currency', array(
- 'keyColumn' => 'name',
- 'labelColumn' => 'symbol',
- ));
+ 'CRM_Contribute_DAO_Contribution',
+ 'currency', array(
+ 'keyColumn' => 'name',
+ 'labelColumn' => 'symbol',
+ ));
$value = str_replace($currencySymbols, '', $value);
if ($config->monetaryThousandSeparator) {
return TRUE;
}
- // allow between 4-6 digits as postal code since india needs 6 and US needs 5 (or
- // if u disregard the first 0, 4 (thanx excel!)
- // FIXME: we need to figure out how to localize such rules
/**
+ * allow between 4-6 digits as postal code since india needs 6 and US needs 5 (or
+ * if u disregard the first 0, 4 (thanx excel!)
+ * FIXME: we need to figure out how to localize such rules
* @param $value
*
* @return bool
*
* @return boolean
* true if object exists
- * @static
*/
public static function objectExists($value, $options) {
$name = 'name';
*
* @return bool
* true if valid date
- * @static
*/
public static function qfDate($date) {
$config = CRM_Core_Config::singleton();