<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
protected $_gName;
/**
- * id
+ * Id
*
* @var int
*/
protected $_id;
/**
- * action
+ * Action
*
* @var int
*/
protected $_action;
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
* @param null
*
if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
$domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domainID) {
- CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
+ CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
}
/**
- * This function sets the default values for the form.
+ * Set default values for the form.
* the default values are retrieved from the database.
*
* @param null
}
/**
- * Function to build the form
+ * Build the form object
*
* @return void
* @access public
}
/**
- * Function to process the form
+ * Process the form submission
*
* @access public
*