+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | 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$
*
*/
protected $_entityID;
/**
- * The custom data type
+ * The custom data type.
*
* @var int
*/
protected $_cdType;
/**
- * Entity sub type of the table id
+ * Entity sub type of the table id.
*
* @var string
- * @access protected
*/
protected $_subTypeID;
* @param
*
* @return void
- *
- * @access public
- *
*/
public function preProcess() {
- $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this, TRUE);
- $this->_entityID = CRM_Utils_Request::retrieve('entityID', 'Positive', $this, TRUE);
+ $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this, TRUE);
+ $this->_entityID = CRM_Utils_Request::retrieve('entityID', 'Positive', $this, TRUE);
$this->_subTypeID = CRM_Utils_Request::retrieve('subType', 'Positive', $this, TRUE);
$this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
- * @access public
*/
public function buildQuickForm() {
// make this form an upload since we dont know if the custom data injected dynamically
/**
* Process the user submitted custom data values.
*
- * @access public
*
* @return void
*/
public function postProcess() {
$params = $this->controller->exportValues($this->_name);
- $fields = array();
$transaction = new CRM_Core_Transaction();
CRM_Core_BAO_CustomValueTable::postProcess($params,
- $fields,
'civicrm_case',
$this->_entityID,
'Case'
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url('civicrm/contact/view/case', "reset=1&id={$this->_entityID}&cid={$this->_contactID}&action=view"));
- $session = CRM_Core_Session::singleton();
+ $session = CRM_Core_Session::singleton();
$activityTypeID = CRM_Core_OptionGroup::getValue('activity_type', 'Change Custom Data', 'name');
$activityParams = array(
'activity_type_id' => $activityTypeID,
$transaction->commit();
}
-}
+}