| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @param int $domainID
* @param bool $force
*
- * @return boolean
+ * @return bool
* true if item is already in cache
*/
- static function inCache(
+ public static function inCache(
$group,
$name,
$componentID = NULL,
*
* @return string
*/
- static function setCache(
+ public static function setCache(
$values,
$group,
$componentID = NULL,
*
* @return CRM_Core_DAO_Domain|CRM_Core_DAO_Setting
*/
- static function dao(
+ public static function dao(
$group,
$name = NULL,
$componentID = NULL,
* @return mixed
* The data if present in the setting table, else null
*/
- static function getItem(
+ public static function getItem(
$group,
$name = NULL,
$componentID = NULL,
}
}
else {
- $setting =
- CRM_Core_BAO_Setting::getItem(
- $fields['values'][$name]['group_name'],
- $name,
- CRM_Utils_Array::value('component_id', $params),
- NULL,
- CRM_Utils_Array::value('contact_id', $params),
- $domainID
- );
+ $setting = CRM_Core_BAO_Setting::getItem(
+ $fields['values'][$name]['group_name'],
+ $name,
+ CRM_Utils_Array::value('component_id', $params),
+ NULL,
+ CRM_Utils_Array::value('contact_id', $params),
+ $domainID
+ );
}
if (!is_null($setting)) {
// we won't return if not set - helps in return all scenario - otherwise we can't indentify the missing ones
*
* @return void
*/
- static function setItem(
+ public static function setItem(
$value,
$group,
$name,
* @param int $createdID
* @param int $domainID
*/
- static function _setItem(
+ public static function _setItem(
$metadata,
$value,
$group,
*
* @return array
* the following information as appropriate for each setting
- * - name
- * - type
- * - default
- * - add (CiviCRM version added)
- * - is_domain
- * - is_contact
- * - description
- * - help_text
+ * - name
+ * - type
+ * - default
+ * - add (CiviCRM version added)
+ * - is_domain
+ * - is_contact
+ * - description
+ * - help_text
*/
- static function getSettingSpecification(
+ public static function getSettingSpecification(
$componentID = NULL,
$filters = array(),
$domainID = NULL,
*
* @return array
*/
- static function valueOptions(
+ public static function valueOptions(
$group,
$name,
$system = TRUE,
* @param int $userID
* @param string $keyField
*/
- static function setValueOption(
+ public static function setValueOption(
$group,
$name,
$value,
/**
* Civicrm_setting didn't exist before 4.1.alpha1 and this function helps taking decisions during upgrade
*
- * @return boolean
+ * @return bool
*/
public static function isUpgradeFromPreFourOneAlpha1() {
if (CRM_Core_Config::isUpgradeMode()) {
}
return FALSE;
}
+
}