<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Pledge_Form_Payment extends CRM_Core_Form {
/**
- * the id of the pledge payment that we are proceessing
+ * The id of the pledge payment that we are proceessing
*
* @var int
- * @public
*/
public $_id;
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
* @return void
- * @access public
*/
public function preProcess() {
// check for edit permission
if (!CRM_Core_Permission::check('edit pledges')) {
- 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->_id = CRM_Utils_Request::retrieve('ppId', 'Positive', $this);
}
/**
- * This function sets the default values for the form.
+ * Set default values for the form.
* the default values are retrieved from the database
*
- * @access public
*
* @return void
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
if ($this->_id) {
$params['id'] = $this->_id;
}
/**
- * Function to build the form
+ * Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
//add various dates
}
/**
- * Function to process the form
+ * Process the form submission
*
- * @access public
*
* @return void
*/
CRM_Core_Session::setStatus($statusMsg, ts('Saved'), 'success');
}
}
-