Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Profile / Page / View.php
index f0c4fb2f040480a6992038276d470fdeaf8ae23a..2bd0b0c0ad2c28ff79e0376b0e6217ae41349540 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
 class CRM_Profile_Page_View extends CRM_Core_Page {
 
   /**
-   * The id of the contact
+   * The id of the contact.
    *
    * @var int
    */
   protected $_id;
 
   /**
-   * The group id that we are editing
+   * The group id that we are editing.
    *
    * @var int
    */
@@ -58,7 +58,6 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
    * the contact and calls the appropriate type of page to view.
    *
    * @return void
-   *
    */
   public function preProcess() {
     $this->_id = CRM_Utils_Request::retrieve('id', 'Positive',
@@ -120,8 +119,9 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
         );
       }
       if (CRM_Core_Permission::ufGroupValid($this->_gid,
-          CRM_Core_Permission::SEARCH
-        )) {
+        CRM_Core_Permission::SEARCH
+      )
+      ) {
         $this->assign('listingURL',
           CRM_Utils_System::url("civicrm/profile",
             "force=1&gid={$gidString}"
@@ -166,7 +166,6 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
    * Build the outcome basing on the CRM_Profile_Page_Dynamic's HTML
    *
    * @return void
-   *
    */
   public function run() {
     $this->preProcess();
@@ -199,7 +198,7 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
   }
 
   /**
-   * Use the form name to create the tpl file name
+   * Use the form name to create the tpl file name.
    *
    * @return string
    */
@@ -224,4 +223,5 @@ class CRM_Profile_Page_View extends CRM_Core_Page {
     $fileName = $this->checkTemplateFileExists('extra.');
     return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
   }
+
 }