<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | 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_SavedSearch 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;
$savedSearch->id = $id;
$savedSearch->is_active = 0;
$savedSearch->save();
- return;
}
/**
* Browse all saved searches.
*
- * @return content of the parents run method
+ * @return mixed
+ * content of the parents run method
*/
public function browse() {
$rows = array();
$row['name'] = $group->title;
$row['description'] = $group->description;
- $row['id'] = $savedSearch->id;
- $formValues = unserialize($savedSearch->form_values);
- $query = new CRM_Contact_BAO_Query($formValues);
+ $row['id'] = $savedSearch->id;
+ $formValues = unserialize($savedSearch->form_values);
+ $query = new CRM_Contact_BAO_Query($formValues);
$row['query_detail'] = $query->qill();
- $action = array_sum(array_keys(self::links()));
- $action = $action & CRM_Core_Action::mask($permissions);
+ $action = array_sum(array_keys(self::links()));
+ $action = $action & CRM_Core_Action::mask($permissions);
$row['action'] = CRM_Core_Action::formLink(
self::links(),
$action,
}
/**
- * Get action Links
+ * Get action Links.
*
* @return array
* (reference) of action links
- * @static
*/
public static function &links() {
}
return self::$_links;
}
+
}