renamed report events and listeners
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupApplying;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupApplying;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddAccountsToReports extends Listener
|
||||
class AddAccounts extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\IncomeSummary',
|
||||
@ -22,7 +22,7 @@ class AddAccountsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -37,7 +37,7 @@ class AddAccountsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -52,7 +52,7 @@ class AddAccountsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupApplying(ReportGroupApplying $event)
|
||||
public function handleGroupApplying(GroupApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -67,7 +67,7 @@ class AddAccountsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipRowsShowing($event, 'account')) {
|
||||
return;
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupApplying;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupApplying;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddCustomersToReports extends Listener
|
||||
class AddCustomers extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\IncomeSummary',
|
||||
@ -21,7 +21,7 @@ class AddCustomersToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -36,7 +36,7 @@ class AddCustomersToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -51,7 +51,7 @@ class AddCustomersToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupApplying(ReportGroupApplying $event)
|
||||
public function handleGroupApplying(GroupApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -66,7 +66,7 @@ class AddCustomersToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipRowsShowing($event, 'customer')) {
|
||||
return;
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterApplying;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Report\FilterApplying;
|
||||
use App\Events\Report\FilterShowing;
|
||||
|
||||
class AddDateToReports extends Listener
|
||||
class AddDate extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\IncomeSummary',
|
||||
@ -22,7 +22,7 @@ class AddDateToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -37,7 +37,7 @@ class AddDateToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterApplying(ReportFilterApplying $event)
|
||||
public function handleFilterApplying(FilterApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddExpenseCategoriesToReports extends Listener
|
||||
class AddExpenseCategories extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\ExpenseSummary',
|
||||
@ -19,7 +19,7 @@ class AddExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -34,7 +34,7 @@ class AddExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -49,7 +49,7 @@ class AddExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipRowsShowing($event, 'category')) {
|
||||
return;
|
@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddIncomeCategoriesToReports extends Listener
|
||||
class AddIncomeCategories extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\IncomeSummary',
|
||||
@ -19,7 +19,7 @@ class AddIncomeCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -34,7 +34,7 @@ class AddIncomeCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -49,7 +49,7 @@ class AddIncomeCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipRowsShowing($event, 'category')) {
|
||||
return;
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
use App\Models\Setting\Category;
|
||||
|
||||
class AddIncomeExpenseCategoriesToReports extends Listener
|
||||
class AddIncomeExpenseCategories extends Listener
|
||||
{
|
||||
/**
|
||||
* Handle filter showing event.
|
||||
@ -16,7 +16,7 @@ class AddIncomeExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
$classes = [
|
||||
'App\Reports\IncomeExpenseSummary',
|
||||
@ -35,7 +35,7 @@ class AddIncomeExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
$classes = [
|
||||
'App\Reports\IncomeExpenseSummary',
|
||||
@ -55,7 +55,7 @@ class AddIncomeExpenseCategoriesToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if (
|
||||
empty($event->class)
|
@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddRowsToTaxReport extends Listener
|
||||
class AddRowsToTax extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\TaxSummary',
|
||||
@ -17,7 +17,7 @@ class AddRowsToTaxReport extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterApplying;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Report\FilterApplying;
|
||||
use App\Events\Report\FilterShowing;
|
||||
|
||||
class AddSearchToReports extends Listener
|
||||
class AddSearch extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\IncomeSummary',
|
||||
@ -22,7 +22,7 @@ class AddSearchToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -37,7 +37,7 @@ class AddSearchToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterApplying(ReportFilterApplying $event)
|
||||
public function handleFilterApplying(FilterApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Listeners\Common;
|
||||
namespace App\Listeners\Report;
|
||||
|
||||
use App\Abstracts\Listeners\Report as Listener;
|
||||
use App\Events\Common\ReportFilterShowing;
|
||||
use App\Events\Common\ReportGroupApplying;
|
||||
use App\Events\Common\ReportGroupShowing;
|
||||
use App\Events\Common\ReportRowsShowing;
|
||||
use App\Events\Report\FilterShowing;
|
||||
use App\Events\Report\GroupApplying;
|
||||
use App\Events\Report\GroupShowing;
|
||||
use App\Events\Report\RowsShowing;
|
||||
|
||||
class AddVendorsToReports extends Listener
|
||||
class AddVendors extends Listener
|
||||
{
|
||||
protected $classes = [
|
||||
'App\Reports\ExpenseSummary',
|
||||
@ -21,7 +21,7 @@ class AddVendorsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportFilterShowing(ReportFilterShowing $event)
|
||||
public function handleFilterShowing(FilterShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -36,7 +36,7 @@ class AddVendorsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupShowing(ReportGroupShowing $event)
|
||||
public function handleGroupShowing(GroupShowing $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -51,7 +51,7 @@ class AddVendorsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportGroupApplying(ReportGroupApplying $event)
|
||||
public function handleGroupApplying(GroupApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
return;
|
||||
@ -66,7 +66,7 @@ class AddVendorsToReports extends Listener
|
||||
* @param $event
|
||||
* @return void
|
||||
*/
|
||||
public function handleReportRowsShowing(ReportRowsShowing $event)
|
||||
public function handleRowsShowing(RowsShowing $event)
|
||||
{
|
||||
if ($this->skipRowsShowing($event, 'vendor')) {
|
||||
return;
|
Reference in New Issue
Block a user