<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
protected $_sortByCharacter;
+ /**
+ * @return string
+ */
function getBAOName() {
return 'CRM_Contact_BAO_Group';
}
/**
* return user context uri to return to
*
+ * @param null $mode
+ *
* @return string
* @access public
*/
/**
* return user context uri params
*
+ * @param null $mode
+ *
* @return string
* @access public
*/
/**
* make sure that the user has permission to access this group
*
- * @param int $id the id of the object
- * @param int $name the name or title of the object
+ * @param int $id the id of the object
+ * @param int $title
+ *
+ * @internal param int $name the name or title of the object
*
* @return string the permission that the user has (or null)
* @access public
}
$this->assign('showOrgInfo', $showOrgInfo);
+ // Refresh smart group cache
+ if (!empty($_GET['update_smart_groups'])) {
+ CRM_Contact_BAO_GroupContactCache::loadAll();
+ }
+ else {
+ CRM_Contact_BAO_GroupContactCache::fillIfEmpty();
+ }
+
$this->search();
}