<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | 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$
*
*/
public $_contactId;
/**
- * This function is called when action is browse
+ * called when action is browse
*
- * return null
- * @access public
+ * @return null
*/
- function browse() {
+ public function browse() {
$in = CRM_Contact_BAO_GroupContact::getContactGroup($this->_contactId, 'Added');
// keep track of all 'added' contact groups so we can remove them from the smart group
}
$allGroup = CRM_Contact_BAO_GroupContactCache::contactGroup($this->_contactId);
- $this->assign('groupSmart' , NULL);
+ $this->assign('groupSmart', NULL);
$this->assign('groupParent', NULL);
if (!empty($allGroup)) {
- $smart = $parent = array( );
+ $smart = $parent = array();
foreach ($allGroup['group'] as $group) {
// delete all smart groups which are also in static groups
if (isset($staticGroups[$group['id']])) {
}
}
- function preProcess() {
+ public function preProcess() {
$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
$this->assign('contactId', $this->_contactId);
}
/**
- * This function is the main function that is called
+ * the main function that is called
* when the page loads, it decides the which action has
* to be taken for the page.
*
- * return null
- * @access public
+ * @return null
*/
- function run() {
+ public function run() {
$this->preProcess();
$this->browse();
return parent::run();
}
-}
\ No newline at end of file
+}