<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
*/
+/**
+ * Class CRM_Utils_Api
+ */
class CRM_Utils_Api {
/**
* Attempts to retrieve the API entity name from any calling class.
* @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);