| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* The action links that we need to display for the browse screen
*
* @var array
- * @static
*/
static $_links = NULL;
static $_entityID;
static $_columnHeader = NULL;
static $_returnvalues = NULL;
+
/**
* Get BAO Name
*
- * @return string Classname of BAO.
+ * @return string
+ * Classname of BAO.
*/
public function getBAOName() {
return 'CRM_Batch_BAO_Batch';
/**
* Get action Links
*
- * @return array (reference) of action links
+ * @return array
+ * (reference) of action links
*/
public function &links() {
if (!(self::$_links)) {
self::$_links = array(
- 'view' => array(
- 'name' => ts('View'),
- 'url' => 'civicrm/contact/view/contribution',
- 'qs' => 'reset=1&id=%%contid%%&cid=%%cid%%&action=view&context=contribution&selectedChild=contribute',
+ 'view' => array(
+ 'name' => ts('View'),
+ 'url' => 'civicrm/contact/view/contribution',
+ 'qs' => 'reset=1&id=%%contid%%&cid=%%cid%%&action=view&context=contribution&selectedChild=contribute',
'title' => ts('View Contribution'),
),
- 'remove' => array(
- 'name' => ts('Remove'),
+ 'remove' => array(
+ 'name' => ts('Remove'),
'title' => ts('Remove Transaction'),
'extra' => 'onclick = "assignRemove( %%id%%,\'' . 'remove' . '\' );"',
),
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
if (isset(self::$_entityID)) {
$statusID = CRM_Core_DAO::getFieldValue('CRM_Batch_BAO_Batch', self::$_entityID, 'status_id');
}
- $breadCrumb =
- array(
+ $breadCrumb
+ = array(
array(
'title' => ts('Accounting Batches'),
'url' => CRM_Utils_System::url('civicrm/financial/financialbatches',
"reset=1&batchStatus=$statusID"),
- )
+ ),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
*
*
* @return void
- * @static
*/
public function browse() {
}
/**
* Get name of edit form
*
- * @return string Classname of edit form.
+ * @return string
+ * Classname of edit form.
*/
public function editForm() {
return 'CRM_Financial_Form_BatchTransaction';
/**
* Get edit form name
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
public function editName() {
return 'Batch';
*
* @param null $mode
*
- * @return string user context.
+ * @return string
+ * user context.
*/
public function userContext($mode = NULL) {
return 'civicrm/batchtransaction';
}
+
}