Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-10-14-11-04-09
[civicrm-core.git] / CRM / Financial / Page / FinancialType.php
index 5903c2ebc5c5e789a8793052225381a2b40bf40a..d4352885db1e3911b2bbc1c3d35aaf5598d72340 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.                                    |
   |                                                                    |
   | 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$
  *
  */
@@ -40,56 +40,57 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
 
   public $useLivePageJS = TRUE;
   /**
-   * The action links that we need to display for the browse screen
+   * The action links that we need to display for the browse screen.
    *
    * @var array
-   * @static
    */
   static $_links = NULL;
 
   /**
-   * Get BAO Name
+   * Get BAO Name.
    *
-   * @return string Classname of BAO.
+   * @return string
+   *   Classname of BAO.
    */
   public function getBAOName() {
     return 'CRM_Financial_BAO_FinancialType';
   }
 
   /**
-   * Get action Links
+   * Get action Links.
    *
-   * @return array (reference) of action links
+   * @return array
+   *   (reference) of action links
    */
   public function &links() {
     if (!(self::$_links)) {
       self::$_links = array(
-        CRM_Core_Action::BROWSE  => array(
-          'name'  => ts('Accounts'),
-          'url'   => 'civicrm/admin/financial/financialType/accounts',
-          'qs'    => 'reset=1&action=browse&aid=%%id%%',
+        CRM_Core_Action::BROWSE => array(
+          'name' => ts('Accounts'),
+          'url' => 'civicrm/admin/financial/financialType/accounts',
+          'qs' => 'reset=1&action=browse&aid=%%id%%',
           'title' => ts('Accounts'),
         ),
-        CRM_Core_Action::UPDATE  => array(
-          'name'  => ts('Edit'),
-          'url'   => 'civicrm/admin/financial/financialType',
-          'qs'    => 'action=update&id=%%id%%&reset=1',
+        CRM_Core_Action::UPDATE => array(
+          'name' => ts('Edit'),
+          'url' => 'civicrm/admin/financial/financialType',
+          'qs' => 'action=update&id=%%id%%&reset=1',
           'title' => ts('Edit Financial Type'),
         ),
         CRM_Core_Action::DISABLE => array(
-          'name'  => ts('Disable'),
-          'ref'   => 'crm-enable-disable',
+          'name' => ts('Disable'),
+          'ref' => 'crm-enable-disable',
           'title' => ts('Disable Financial Type'),
         ),
-        CRM_Core_Action::ENABLE  => array(
-          'name'  => ts('Enable'),
-          'ref'   => 'crm-enable-disable',
+        CRM_Core_Action::ENABLE => array(
+          'name' => ts('Enable'),
+          'ref' => 'crm-enable-disable',
           'title' => ts('Enable Financial Type'),
         ),
-        CRM_Core_Action::DELETE  => array(
-          'name'  => ts('Delete'),
-          'url'   => 'civicrm/admin/financial/financialType',
-          'qs'    => 'action=delete&id=%%id%%',
+        CRM_Core_Action::DELETE => array(
+          'name' => ts('Delete'),
+          'url' => 'civicrm/admin/financial/financialType',
+          'qs' => 'action=delete&id=%%id%%',
           'title' => ts('Delete Financial Type'),
         ),
       );
@@ -105,7 +106,6 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
    * Finally it calls the parent's run method.
    *
    * @return void
-   *
    */
   public function run() {
     // get the requested action
@@ -125,11 +125,10 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
   }
 
   /**
-   * Browse all financial types
+   * Browse all financial types.
    *
    *
    * @return void
-   * @static
    */
   public function browse() {
     // get all financial types sorted by weight
@@ -192,18 +191,20 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
   }
 
   /**
-   * Get name of edit form
+   * Get name of edit form.
    *
-   * @return string Classname of edit form.
+   * @return string
+   *   Classname of edit form.
    */
   public function editForm() {
     return 'CRM_Financial_Form_FinancialType';
   }
 
   /**
-   * Get edit form name
+   * Get edit form name.
    *
-   * @return string name of this page.
+   * @return string
+   *   name of this page.
    */
   public function editName() {
     return 'Financial Types';
@@ -214,9 +215,11 @@ class CRM_Financial_Page_FinancialType extends CRM_Core_Page_Basic {
    *
    * @param null $mode
    *
-   * @return string user context.
+   * @return string
+   *   user context.
    */
   public function userContext($mode = NULL) {
     return 'civicrm/admin/financial/financialType';
   }
+
 }