Merge branch 'angular-tests' of https://github.com/giant-rabbit/civicrm-core into...
[civicrm-core.git] / CRM / UF / Form / Group.php
index 26cf0f715a6174578d13d6a9a70c8e9c54769f22..5a6e4ef7ece6952ec6c64ae912ec6cc46c50ce16 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -42,7 +42,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * The form id saved to the session for an update
    *
    * @var int
-   * @access protected
    */
   protected $_id;
 
@@ -50,7 +49,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * The title for group
    *
    * @var int
-   * @access protected
    */
   protected $_title;
   protected $_groupElement;
@@ -61,7 +59,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * Set variables up before form is built
    *
    * @return void
-   * @access public
    */
   public function preProcess() {
     // current form id
@@ -112,7 +109,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function buildQuickForm() {
     if ($this->_action & (CRM_Core_Action::DISABLE | CRM_Core_Action::DELETE)) {
@@ -211,11 +207,10 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * 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();
 
@@ -291,10 +286,9 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * @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.
@@ -316,7 +310,6 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
    * Process the form
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     if ($this->_action & CRM_Core_Action::DELETE) {
@@ -383,4 +376,3 @@ class CRM_UF_Form_Group extends CRM_Core_Form {
     CRM_Utils_System::updateCategories();
   }
 }
-