<?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$
*
*/
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.
}
/**
- * Get action Links
+ * Get 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'),
),
);
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
}
/**
- * Browse all financial types
+ * Browse all financial types.
*
*
* @return void
- * @static
*/
public function browse() {
// get all financial types sorted by weight
}
/**
- * Get name of edit form
+ * Get name of edit form.
*
* @return string
* Classname of edit form.
}
/**
- * Get edit form name
+ * Get edit form name.
*
* @return string
* name of this page.
public function userContext($mode = NULL) {
return 'civicrm/admin/financial/financialType';
}
+
}