Merge pull request #3649 from colemanw/totten-colemanw-validate
[civicrm-core.git] / CRM / Admin / Page / MessageTemplates.php
index 5622e7a07927d94c7f6fdd7da0c7be0e09ef5f83..44d4f0b0c2c792dd11e19d991968c73eca15cbd8 100644 (file)
@@ -52,6 +52,10 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
   // set to the id that we’re reverting at the given moment (if we are)
   protected $_revertedId;
 
+  /**
+   * @param null $title
+   * @param null $mode
+   */
   function __construct($title = NULL, $mode = NULL) {
     parent::__construct($title, $mode);
 
@@ -132,6 +136,14 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
     return self::$_links;
   }
 
+  /**
+   * @param CRM_Core_DAO $object
+   * @param int $action
+   * @param array $values
+   * @param array $links
+   * @param string $permission
+   * @param bool $forceAction
+   */
   function action(&$object, $action, &$values, &$links, $permission, $forceAction = FALSE) {
     if ($object->workflow_id) {
       // do not expose action link for reverting to default if the template did not diverge or we just reverted it now
@@ -168,6 +180,13 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
     }
   }
 
+  /**
+   * @param null $args
+   * @param null $pageArgs
+   * @param null $sort
+   *
+   * @throws Exception
+   */
   function run($args = NULL, $pageArgs = NULL, $sort = NULL) {
     // handle the revert action and offload the rest to parent
     if (CRM_Utils_Request::retrieve('action', 'String', $this) & CRM_Core_Action::REVERT) {
@@ -208,6 +227,8 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
   /**
    * Get user context.
    *
+   * @param null $mode
+   *
    * @return string user context.
    */
   function userContext($mode = NULL) {
@@ -217,7 +238,7 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic {
   /**
    * browse all entities.
    *
-   * @param int $action
+   * @internal param int $action
    *
    * @return void
    * @access public