* @param bool $monthRequired
* Check whether month is mandatory.
*
- * @return bool true if valid date
- * @static
+ * @return bool
+ * true if valid date
*/
public static function currentDate($date, $monthRequired = TRUE) {
$config = CRM_Core_Config::singleton();
*
* @param string $date
*
- * @return bool true if valid date
- * @static
+ * @return bool
+ * true if valid date
*/
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
*
* @param array Uploaded file info (from $_FILES)
*
- * @return bool true if file has been uploaded, false otherwise
+ * @return bool
+ * true if file has been uploaded, false otherwise
*/
public static function asciiFile($elementValue) {
if ((isset($elementValue['error']) && $elementValue['error'] == 0) ||
*
* @param array Uploaded file info (from $_FILES)
*
- * @return bool whether file has been uploaded properly and is now in UTF-8
+ * @return bool
+ * whether file has been uploaded properly and is now in UTF-8
*/
public static function utf8File($elementValue) {
$success = FALSE;
*
* @param array Uploaded file info (from $_FILES)
*
- * @return bool true if file has been uploaded, false otherwise
+ * @return bool
+ * true if file has been uploaded, false otherwise
*/
public static function htmlFile($elementValue) {
if ((isset($elementValue['error']) && $elementValue['error'] == 0) ||
* @param array $options
* The daoName and fieldName (optional ).
*
- * @return boolean true if object exists
- * @static
+ * @return boolean
+ * true if object exists
*/
public static function objectExists($value, $options) {
$name = 'name';
*
* @param array $date
*
- * @return bool true if valid date
- * @static
+ * @return bool
+ * true if valid date
*/
public static function qfDate($date) {
$config = CRM_Core_Config::singleton();