<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
class CRM_Bridge_OG_Utils {
- CONST aclEnabled = 1, syncFromCiviCRM = 1;
+ const aclEnabled = 1, syncFromCiviCRM = 1;
/**
* @return int
*/
- static function aclEnabled() {
+ public static function aclEnabled() {
return self::aclEnabled;
}
/**
- * Switch to stop synchronization from CiviCRM
+ * Switch to stop synchronization from CiviCRM.
* This was always false before, and is always true
* now. Most likely, this needs to be a setting.
*/
- static function syncFromCiviCRM() {
+ public static function syncFromCiviCRM() {
// make sure that acls are not enabled
//RMT -- the following makes no f**king sense...
//return ! self::aclEnabled & self::syncFromCiviCRM;
*
* @return string
*/
- static function ogSyncName($ogID) {
+ public static function ogSyncName($ogID) {
return "OG Sync Group :{$ogID}:";
}
*
* @return string
*/
- static function ogSyncACLName($ogID) {
+ public static function ogSyncACLName($ogID) {
return "OG Sync Group ACL :{$ogID}:";
}
* @return int|null|string
* @throws Exception
*/
- static function ogID($groupID, $abort = TRUE) {
+ public static function ogID($groupID, $abort = TRUE) {
$source = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Group',
$groupID,
'source'
* @return int
* @throws Exception
*/
- static function contactID($ufID) {
+ public static function contactID($ufID) {
$contactID = CRM_Core_BAO_UFMatch::getContactId($ufID);
if ($contactID) {
return $contactID;
* @return null|string
* @throws Exception
*/
- static function groupID($source, $title = NULL, $abort = FALSE) {
+ public static function groupID($source, $title = NULL, $abort = FALSE) {
$query = "
SELECT id
FROM civicrm_group
return $groupID;
}
-}
+}