<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* @var array
* @static
*/
- static $_links = null;
+ static $_links = NULL;
static $_entityID;
- static $_columnHeader = null;
- static $_returnvalues = null;
+ static $_columnHeader = NULL;
+ static $_returnvalues = NULL;
/**
* Get BAO Name
*
* @return string Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_Batch_BAO_Batch';
}
*
* @return array (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
self::$_links = array(
'view' => array(
* Finally it calls the parent's run method.
*
* @return void
- * @access public
*
*/
- function run() {
+ public function run() {
// get the requested action
- $action = CRM_Utils_Request::retrieve('action', 'String', $this, false, 'browse'); // default to 'browse'
+ $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); // default to 'browse'
// assign vars to templates
$this->assign('action', $action);
- self::$_entityID = CRM_Utils_Request::retrieve('bid' , 'Positive');
+ self::$_entityID = CRM_Utils_Request::retrieve('bid', 'Positive');
if (isset(self::$_entityID)) {
$statusID = CRM_Core_DAO::getFieldValue('CRM_Batch_BAO_Batch', self::$_entityID, 'status_id');
}
'title' => ts('Accounting Batches'),
'url' => CRM_Utils_System::url('civicrm/financial/financialbatches',
"reset=1&batchStatus=$statusID"),
- )
+ ),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
*
*
* @return void
- * @access public
* @static
*/
- function browse() {
+ public function browse() {
}
/**
*
* @return string Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_Financial_Form_BatchTransaction';
}
*
* @return string name of this page.
*/
- function editName() {
+ public function editName() {
return 'Batch';
}
*
* @return string user context.
*/
- function userContext($mode = null) {
+ public function userContext($mode = NULL) {
return 'civicrm/batchtransaction';
}
}
-
-