CRM-15678 hookable invalid page handling
[civicrm-core.git] / CRM / Utils / Api.php
index 4c1a04d18fb8d47ffadb6f15e46f06151dfbbec6..cd2eda3b21327551ec9df5e8c1696fba4f1a9514 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  +--------------------------------------------------------------------+
 */
 
+/**
+ * Class CRM_Utils_Api
+ */
 class CRM_Utils_Api {
   /**
-   * Attempt to retrieve the api entity name from any calling class
-   * @param $classNameOrObject
+   * Attempts to retrieve the API entity name from any calling class.
+   *
+   * @param string|object $classNameOrObject
+   *
+   * @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);