Merge pull request #4851 from totten/master-createtest-bao
[civicrm-core.git] / CRM / Contact / Page / SavedSearch.php
index 0eb1cd07c1fb88daf1fd59b902e14b59c005ec77..58d2a9efc68defcd3a9b3fd745dc3241ebc24a06 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -48,14 +48,15 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
   static $_links = NULL;
 
   /**
-   * delete a saved search.
+   * Delete a saved search.
    *
-   * @param int $id - id of saved search
+   * @param int $id
+   *   Id of saved search.
    *
    * @return void
    *
    */
-  function delete($id) {
+  public function delete($id) {
     // first delete the group associated with this saved search
     $group = new CRM_Contact_DAO_Group();
     $group->saved_search_id = $id;
@@ -76,7 +77,7 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
    * @return content of the parents run method
    *
    */
-  function browse() {
+  public function browse() {
     $rows = array();
 
     $savedSearch = new CRM_Contact_DAO_SavedSearch();
@@ -125,11 +126,11 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
   }
 
   /**
-   * 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'
     );
@@ -151,7 +152,7 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
    * @return array (reference) of action links
    * @static
    */
-  static function &links() {
+  public static function &links() {
 
     if (!(self::$_links)) {
 
@@ -175,4 +176,3 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page {
     return self::$_links;
   }
 }
-