*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
/**
- * This class is to build the form for adding Group
+ * This class is to build the form for adding Group.
*/
class CRM_Group_Form_Edit extends CRM_Core_Form {
/**
* Set up variables to build the form.
- *
- * @return void
*/
public function preProcess() {
$this->_id = $this->get('id');
}
/**
- * Set default values for the form. LocationType that in edit/view mode
- * the default values are retrieved from the database
+ * Set default values for the form.
*
* @return array
*/
/**
* Build the form object.
- *
- * @return void
*/
public function buildQuickForm() {
if ($this->_action == CRM_Core_Action::DELETE) {
* @param array $fields
* Posted values of the form.
* @param array $fileParams
- * @param $options
+ * @param array $options
*
* @return array
* list of errors to be posted back to the form
/**
* Process the form when submitted.
- *
- * @return void
*/
public function postProcess() {
CRM_Utils_System::flushCache('CRM_Core_DAO_Group');
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
class CRM_Group_Page_Group extends CRM_Core_Page_Basic {
protected $_sortByCharacter;
/**
+ * Get BAO name.
+ *
* @return string
*/
public function getBAOName() {
}
/**
+ * Re-implement browse.
+ *
* We need to do slightly different things for groups vs saved search groups, hence we
- * reimplement browse from Page_Basic
+ * re-implement browse from Page_Basic.
*
* @param int $action
- *
- * @return void
*/
public function browse($action = NULL) {
$groupPermission = CRM_Core_Permission::check('edit groups') ? CRM_Core_Permission::EDIT : CRM_Core_Permission::VIEW;
$this->search();
}
+ /**
+ * Search for groups.
+ */
public function search() {
if ($this->_action & (CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE |