Merge pull request #5079 from colemanw/getfields
[civicrm-core.git] / CRM / Admin / Page / APIExplorer.php
index a1902553f37ab54ef297d7093be930368386e6ad..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        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  */
 class CRM_Admin_Page_APIExplorer extends CRM_Core_Page {
 
-  function run() {
+  /**
+   * @return string
+   */
+  public function run() {
     CRM_Utils_System::setTitle(ts('API explorer and generator'));
     CRM_Core_Resources::singleton()
       ->addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js')
@@ -51,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';
   }
-}
 
+}