CRM-15678 hookable invalid page handling
[civicrm-core.git] / CRM / Utils / Api.php
index 97143abdd03760465ed1d62917d16186deac9519..cd2eda3b21327551ec9df5e8c1696fba4f1a9514 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -25,6 +25,9 @@
  +--------------------------------------------------------------------+
 */
 
+/**
+ * Class CRM_Utils_Api
+ */
 class CRM_Utils_Api {
   /**
    * Attempts to retrieve the API entity name from any calling class.
@@ -34,7 +37,7 @@ class CRM_Utils_Api {
    * @return string
    * @throws CRM_Core_Exception
    */
-  static function getEntityName($classNameOrObject) {
+  public static function getEntityName($classNameOrObject) {
     require_once 'api/api.php';
     $className = is_string($classNameOrObject) ? $classNameOrObject : get_class($classNameOrObject);