Merge pull request #5079 from colemanw/getfields
[civicrm-core.git] / CRM / Admin / Page / APIExplorer.php
index 809fb95f84a72e5e7cc303a44e7813d670f0b96b..7b93156a49115872e166df0d1bc16cb01c5ec687 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -41,7 +41,7 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page {
   /**
    * @return string
    */
-  function run() {
+  public function run() {
     CRM_Utils_System::setTitle(ts('API explorer and generator'));
     CRM_Core_Resources::singleton()
       ->addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js')
@@ -54,10 +54,11 @@ class CRM_Admin_Page_APIExplorer extends CRM_Core_Page {
   /**
    * Get user context.
    *
-   * @return string user context.
+   * @return string
+   *   user context.
    */
-  function userContext() {
+  public function userContext() {
     return 'civicrm/api/explorer';
   }
-}
 
+}