| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
/**
* Global validation rules for the form
*
- * @param array $fields posted values of the form
+ * @param array $fields
+ * Posted values of the form.
*
- * @return array if errors then list of errors to be posted back to the form,
+ * @return array
+ * if errors then list of errors to be posted back to the form,
* true otherwise
- * @static
- * @access public
*/
- static function formRule($fields) {
+ public static function formRule($fields) {
$errors = array();
if ($fields['name'] == 'activityDateTime' && !$fields['time_format']) {
/**
* Process the form submission
*
- * @access public
*
* @return void
*/
$params = $this->controller->exportValues($this->_name);
// action is taken depending upon the mode
- $dao = new CRM_Core_DAO_PreferencesDate();
- $dao->id = $this->_id;
+ $dao = new CRM_Core_DAO_PreferencesDate();
+ $dao->id = $this->_id;
$dao->description = $params['description'];
- $dao->start = $params['start'];
- $dao->end = $params['end'];
+ $dao->start = $params['start'];
+ $dao->end = $params['end'];
$dao->date_format = $params['date_format'];
$dao->time_format = $params['time_format'];
$dao->save();
CRM_Core_Session::setStatus(ts("The date type '%1' has been saved.",
- array(1 => $params['name'])
- ), ts('Saved'), 'success');
+ array(1 => $params['name'])
+ ), ts('Saved'), 'success');
}
+
}