CRM-15495 - Improve entityRef contact_type filter
[civicrm-core.git] / CRM / Contact / Page / CustomSearch.php
index 1b43fea815ecb414a720024819a2a0344241b356..80875354d74387e5129c32ee9deed2404389dc52 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.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -47,6 +47,9 @@ class CRM_Contact_Page_CustomSearch extends CRM_Core_Page {
    */
   static $_links = NULL;
 
+  /**
+   * @return array
+   */
   public static function &info() {
     $sql = "
 SELECT v.value, v.label, v.description
@@ -79,18 +82,18 @@ ORDER By  v.weight
    * @return content of the parents run method
    *
    */
-  function browse() {
+  public function browse() {
     $rows = self::info();
     $this->assign('rows', $rows);
     return parent::run();
   }
 
   /**
-   * run this page (figure out the action needed and perform it).
+   * Run this page (figure out the action needed and perform it).
    *
    * @return void
    */
-  function run() {
+  public function run() {
     $action = CRM_Utils_Request::retrieve('action',
       'String',
       $this, FALSE, 'browse'
@@ -100,4 +103,3 @@ ORDER By  v.weight
     return $this->browse();
   }
 }
-