Ian province abbreviation patch - issue 724
[civicrm-core.git] / CRM / Core / QuickForm / Action / Display.php
index 8c3b2a4246361c4921264da98ae57b8c5d34c99f..3d1fb007827468c64c642da410b711e88733625d 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  * Redefine the display action.
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
 
   /**
-   * The template to display the required "red" asterick
+   * The template to display the required "red" asterick.
    * @var string
    */
   static $_requiredTemplate = NULL;
 
   /**
-   * The template to display error messages inline with the form element
+   * The template to display error messages inline with the form element.
    * @var string
    */
   static $_errorTemplate = NULL;
 
   /**
-   * Class constructor
+   * Class constructor.
    *
    * @param object $stateMachine
    *   Reference to state machine object.
@@ -67,7 +65,7 @@ class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
    * @param string $actionName
    *   Current action name, as one Action object can serve multiple actions.
    *
-   * @return void
+   * @return object|void
    */
   public function perform(&$page, $actionName) {
     $pageName = $page->getAttribute('id');
@@ -102,13 +100,10 @@ class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
   }
 
   /**
-   * Render the page using a custom templating system
+   * Render the page using a custom templating system.
    *
    * @param CRM_Core_Form $page
    *   The CRM_Core_Form page.
-   *
-   *
-   * @return void
    */
   public function renderForm(&$page) {
     $this->_setRenderTemplates($page);
@@ -187,12 +182,10 @@ class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
   }
 
   /**
-   * Set the various rendering templates
+   * Set the various rendering templates.
    *
    * @param CRM_Core_Form $page
    *   The CRM_Core_Form page.
-   *
-   * @return void
    */
   public function _setRenderTemplates(&$page) {
     if (self::$_requiredTemplate === NULL) {
@@ -206,9 +199,7 @@ class CRM_Core_QuickForm_Action_Display extends CRM_Core_QuickForm_Action {
   }
 
   /**
-   * Initialize the various templates
-   *
-   * @return void
+   * Initialize the various templates.
    */
   public function initializeTemplates() {
     if (self::$_requiredTemplate !== NULL) {