Merge pull request #4981 from totten/master-cbf2
[civicrm-core.git] / CRM / Financial / Page / Batch.php
index e3f36d29082658200ce1afc9148f5a358e1944b5..e6922b5a9e5d311c820ece27fec37e05fbc1ab77 100644 (file)
@@ -42,41 +42,43 @@ class CRM_Financial_Page_Batch extends CRM_Core_Page_Basic {
    * The action links that we need to display for the browse screen
    *
    * @var array
-   * @static
    */
   static $_links = NULL;
 
   /**
    * Get BAO Name
    *
-   * @return string Classname of BAO.
+   * @return string
+   *   Classname of BAO.
    */
-  function getBAOName() {
+  public function getBAOName() {
     return 'CRM_Batch_BAO_Batch';
   }
 
   /**
    * Get action Links
    *
-   * @return array (reference) of action links
    */
-  function &links() {}
+  public function &links() {
+  }
 
   /**
    * Get name of edit form
    *
-   * @return string Classname of edit form.
+   * @return string
+   *   Classname of edit form.
    */
-  function editForm() {
+  public function editForm() {
     return 'CRM_Financial_Form_FinancialBatch';
   }
 
   /**
    * Get edit form name
    *
-   * @return string name of this page.
+   * @return string
+   *   name of this page.
    */
-  function editName() {
+  public function editName() {
     return ts('Accounting Batch Processing');
   }
 
@@ -85,9 +87,10 @@ class CRM_Financial_Page_Batch extends CRM_Core_Page_Basic {
    *
    * @param null $mode
    *
-   * @return string user context.
+   * @return string
+   *   user context.
    */
-  function userContext($mode = NULL) {
+  public function userContext($mode = NULL) {
     return CRM_Utils_System::currentPath();
   }
 
@@ -95,17 +98,15 @@ class CRM_Financial_Page_Batch extends CRM_Core_Page_Basic {
    * Browse all entities.
    *
    * @return void
-   * @access public
    */
-  function browse() {
+  public function browse() {
     $status = CRM_Utils_Request::retrieve('status', 'Positive', CRM_Core_DAO::$_nullObject, FALSE, 1);
     $this->assign('status', $status);
     $this->search();
   }
 
-  function search() {
-    if ($this->_action &
-      (CRM_Core_Action::ADD |
+  public function search() {
+    if ($this->_action & (CRM_Core_Action::ADD |
         CRM_Core_Action::UPDATE |
         CRM_Core_Action::DELETE
       )
@@ -119,5 +120,5 @@ class CRM_Financial_Page_Batch extends CRM_Core_Page_Basic {
     $form->process();
     $form->run();
   }
-}
 
+}