<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_UF_Form_Group extends CRM_Core_Form {
/**
- * the form id saved to the session for an update
+ * The form id saved to the session for an update
*
* @var int
- * @access protected
*/
protected $_id;
/**
- * the title for group
+ * The title for group
*
* @var int
- * @access protected
*/
protected $_title;
protected $_groupElement;
protected $_allPanes;
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
* @return void
- * @access public
*/
public function preProcess() {
// current form id
}
/**
- * Function to actually build the form
+ * Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
if ($this->_action & (CRM_Core_Action::DISABLE | CRM_Core_Action::DELETE)) {
}
/**
- * This function sets the default values for the form. Note that in edit/view mode
+ * Set default values for the form. Note that in edit/view mode
* the default values are retrieved from the database
*
- * @access public
*
* @return void
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
$showHide = new CRM_Core_ShowHideBlocks();
}
/**
- * global form rule
+ * Global form rule
*
* @param array $fields the input form values
* @param array $files the uploaded files if any
* @param array $self current form object.
*
* @return true if no errors, else array of errors
- * @access public
* @static
*/
- static function formRule($fields, $files, $self) {
+ public static function formRule($fields, $files, $self) {
$errors = array();
//validate profile title as well as name.
* Process the form
*
* @return void
- * @access public
*/
public function postProcess() {
if ($this->_action & CRM_Core_Action::DELETE) {
CRM_Utils_System::updateCategories();
}
}
-