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_Product_Resource
  • Class_Bkap_Product_Resource

Class BKAP_Product_Resource

BKAP_Product_Resource class.

Package: BKAP\Resources
Author: Tyche Softwares
Since: 4.6.0
Class: BKAP_Product_Resource
Located at includes/class-bkap-resources-cpt.php

Methods summary

public
# __construct( $post, $product_id = 0 )

Constructor

Constructor

public integer
# get_id( )

Return the ID

Return the ID

Returns

integer

Since

4.6.0
public integer
# set_id( $id )

Set the ID

Set the ID

Returns

integer

Since

4.6.0
public string
# get_title( )

Get the title of the resource

Get the title of the resource

Returns

string

Since

4.6.0
public boolean
# has_qty( )

Return if we have qty set at resource level

Return if we have qty set at resource level

Returns

boolean

Since

4.6.0
public integer
# get_qty( )

Return the quantity set at resource level

Return the quantity set at resource level

Returns

integer

Since

4.6.0
public integer|float
# get_base_cost( )

Return the base cost of the Resource

Return the base cost of the Resource

Returns

integer|float
$cost - Resource base cost

Since

4.6.0
public integer|float
# get_block_cost( )

Return the block cost for the resource

Return the block cost for the resource

Returns

integer|float
$cost - Resource block cost

Since

4.6.0
public string|array
# get_resource_availability( )

Return the availability of resource

Return the availability of resource

Returns

string|array
  • Qty for the resource available for booking.

Since

4.6.0
public integer
# get_resource_qty( )

Return the quantity of resource

Return the quantity of resource

Returns

integer
Quantity of the resource available for booking

Since

4.6.0
public static integer
# bkap_create_resource( $add_resource_name )

Create Custom post for the Resource.

Create Custom post for the Resource.

Returns

integer
ID of the resource created.

Since

4.6.0
API documentation generated by ApiGen