Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • BKAP
    • Addons
    • Admin-Bookings
    • Attribute-Lockout
    • Block-Pricing
    • Booking-Box
    • Booking-Confirmation
    • Booking-Process
    • Cancel-Order
    • Cart
    • Checkout-Process
    • Core
    • Date-Time
    • Emails
    • Functions
    • Global-Function
    • Global-Settings
    • Google-Calendar-Sync
    • ICS
    • Import-Booking
    • Labels
    • License
    • Menus
    • Meta-Boxes
    • Reschedule
    • Resources
    • Search-Widget
    • Special-Price
    • Uninstall
    • Validation
    • Variation-Lockout
    • Vendors
      • Dokan
      • WC-Vendors
    • View-Bookings
  • None

Classes

  • BKAP_Bookings_View
  • view_bookings
  • WAPBK_View_Bookings_Table

Class view_bookings

Bookings and Appointment Plugin for WooCommerce

Allow Bookings to be edited from Cart and Checkout Page

Package: BKAP\View-Bookings
Category: Classes
Author: Tyche Softwares
Since: 1.7
Located at view-bookings.php

Methods summary

public
# __construct( )

Default constructor

Default constructor

Since

1.7
public static
# bkap_woocommerce_history_page( )

This function adds a page on View Bookings submenu which displays the orders with the booking details. The orders which are cancelled or refunded are not displayed.

This function adds a page on View Bookings submenu which displays the orders with the booking details. The orders which are cancelled or refunded are not displayed.

Since

1.7
public
# bkap_data_export( )

This function will download CSV or Print Bookings based on the CSV on Print button is clicked

This function will download CSV or Print Bookings based on the CSV on Print button is clicked

Since

2.0
public array
# generate_data( string $tab_status )

This function will generate the data require for CSV and Print of bookings

This function will generate the data require for CSV and Print of bookings

Parameters

$tab_status
selected filter E.g status for Booking from today onwards is 'future'

Returns

array
$report All booking details required to show on old View Bookings page.

Since

2.0
public integer
# bkap_order_id_asc( integer $value1, integer $value2 )

Function to sort the Order ids in ascending order

Function to sort the Order ids in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_order_id_dsc( integer $value1, integer $value2 )

Function to sort the Order ids in descending order

Function to sort the Order ids in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_amount_asc( integer $value1, integer $value2 )

Function to sort the amount in ascending order

Function to sort the amount in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_amount_dsc( integer $value1, integer $value2 )

Function to sort the amount in descending order

Function to sort the amount in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_quantity_asc( integer $value1, integer $value2 )

Function to sort the quantity in ascending order

Function to sort the quantity in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_quantity_dsc( integer $value1, integer $value2 )

Function to sort the quantity in descending order

Function to sort the quantity in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_order_date_asc( integer $value1, integer $value2 )

Function to sort the order date in ascending order

Function to sort the order date in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_order_date_dsc( integer $value1, integer $value2 )

Function to sort the order date in descending order

Function to sort the order date in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_checkin_date_asc( integer $value1, integer $value2 )

Function to sort the check-in date in ascending order

Function to sort the check-in date in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_checkin_date_dsc( integer $value1, integer $value2 )

Function to sort the check-in date in descending order

Function to sort the check-in date in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_checkout_date_asc( integer $value1, integer $value2 )

Function to sort the check-out date in ascending order

Function to sort the check-out date in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_checkout_date_dsc( integer $value1, integer $value2 )

Function to sort the check-out date in descending order

Function to sort the check-out date in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_name_asc( string $value1, string $value2 )

Function to sort the name date in ascending order

Function to sort the name date in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_name_dsc( string $value1, string $value2 )

Function to sort the name date in descending order

Function to sort the name date in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_product_name_asc( string $value1, string $value2 )

Function to sort the name date in ascending order

Function to sort the name date in ascending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public integer
# bkap_product_name_dsc( string $value1, string $value2 )

Function to sort the name date in descending order

Function to sort the name date in descending order

Parameters

$value1
$value2

Returns

integer

Since

2.0
public string
# generate_csv( array $report )

This function will create the string to be required for CSV download

This function will create the string to be required for CSV download

Parameters

$report
Array of all booking details

Returns

string
$csv Returns the strings which is created based on the booking details

Since

2.0
API documentation generated by ApiGen