3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class provides the functionality to update a saved search
22 class CRM_Event_Form_Task_SaveSearch_Update
extends CRM_Event_Form_Task_SaveSearch
{
25 * Build all the data structures needed to build the form.
29 public function preProcess() {
32 $this->_id
= $this->get('ssID');
34 // fetch the value from the group id gid
35 $gid = $this->get('gid');
36 $this->_id
= CRM_Core_DAO
::getFieldValue('CRM_Contact_DAO_Group', $gid, 'saved_search_id');
41 * Set default values for the form.
42 * the default values are retrieved from the database
47 public function setDefaultValues() {
52 $params = ['saved_search_id' => $this->_id
];
53 CRM_Contact_BAO_Group
::retrieve($params, $defaults);