CRM-12527 - Set http headers in CMS-compatible way
[civicrm-core.git] / CRM / Contact / Page / CustomSearch.php
index 049a249179cc2bea8a19882a8d52b70dc8b36a57..4f326ffe62bcc202d67ff395f401639fd16654bb 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
 class CRM_Contact_Page_CustomSearch extends CRM_Core_Page {
 
   /**
-   * The action links that we need to display for the browse screen
+   * The action links that we need to display for the browse screen.
    *
    * @var array
-   * @static
    */
   static $_links = NULL;
 
@@ -79,10 +78,10 @@ ORDER By  v.weight
   /**
    * Browse all custom searches.
    *
-   * @return content of the parents run method
-   *
+   * @return mixed
+   *   content of the parents run method
    */
-  function browse() {
+  public function browse() {
     $rows = self::info();
     $this->assign('rows', $rows);
     return parent::run();
@@ -93,7 +92,7 @@ ORDER By  v.weight
    *
    * @return void
    */
-  function run() {
+  public function run() {
     $action = CRM_Utils_Request::retrieve('action',
       'String',
       $this, FALSE, 'browse'
@@ -102,5 +101,5 @@ ORDER By  v.weight
     $this->assign('action', $action);
     return $this->browse();
   }
-}
 
+}