<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
+/**
+ * Class CRM_Utils_Constant
+ */
class CRM_Utils_Constant {
/**
* Determine the value of a constant, if any.
- *
+ *
* If the specified constant is undefined, return a default value.
*
* @param string $name
public static function value($name, $default = NULL) {
if (defined($name)) {
return constant($name);
- } else {
+ }
+ else {
return $default;
}
}
+
}