more comment fixes
[civicrm-core.git] / CRM / Bridge / OG / Utils.php
index fc7b6636a29c29e3db7bc0be258cc7a089565c5a..123efc15cb9009a144f2a3a4d6320b31a3949817 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | 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;
@@ -59,7 +57,7 @@ class CRM_Bridge_OG_Utils {
    *
    * @return string
    */
-  static function ogSyncName($ogID) {
+  public static function ogSyncName($ogID) {
     return "OG Sync Group :{$ogID}:";
   }
 
@@ -68,7 +66,7 @@ class CRM_Bridge_OG_Utils {
    *
    * @return string
    */
-  static function ogSyncACLName($ogID) {
+  public static function ogSyncACLName($ogID) {
     return "OG Sync Group ACL :{$ogID}:";
   }
 
@@ -79,7 +77,7 @@ class CRM_Bridge_OG_Utils {
    * @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'
@@ -103,7 +101,7 @@ class CRM_Bridge_OG_Utils {
    * @return int
    * @throws Exception
    */
-  static function contactID($ufID) {
+  public static function contactID($ufID) {
     $contactID = CRM_Core_BAO_UFMatch::getContactId($ufID);
     if ($contactID) {
       return $contactID;
@@ -128,7 +126,7 @@ class CRM_Bridge_OG_Utils {
    * @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
@@ -149,5 +147,5 @@ SELECT id
 
     return $groupID;
   }
-}
 
+}