3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * Page for displaying list of current batches
21 class CRM_Financial_Page_Batch
extends CRM_Core_Page_Basic
{
24 * The action links that we need to display for the browse screen
28 public static $_links = NULL;
36 public function getBAOName() {
37 return 'CRM_Batch_BAO_Batch';
43 public function &links() {
47 * Get name of edit form.
50 * Classname of edit form.
52 public function editForm() {
53 return 'CRM_Financial_Form_FinancialBatch';
62 public function editName() {
63 return ts('Accounting Batch Processing');
74 public function userContext($mode = NULL) {
75 return CRM_Utils_System
::currentPath();
79 * Browse all entities.
81 public function browse() {
82 $status = CRM_Utils_Request
::retrieve('status', 'Positive', CRM_Core_DAO
::$_nullObject, FALSE, 1);
83 $this->assign('status', $status);
87 public function search() {
88 if ($this->_action
& (CRM_Core_Action
::ADD |
89 CRM_Core_Action
::UPDATE |
90 CRM_Core_Action
::DELETE
96 $form = new CRM_Core_Controller_Simple('CRM_Financial_Form_Search', ts('Search Batches'), CRM_Core_Action
::ADD
);
97 $form->setEmbedded(TRUE);
98 $form->setParent($this);