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_calendar_sync
  • BKAP_Gcal
  • BKAP_Gcal_Event
  • bkap_gcal_sync_settings
  • BKAP_Google_Events_View
  • product_gcal_settings
  • WAPBK_Import_Bookings_Table

Functions

  • bkap_import_events_cron
  • woocommerce_bkap_add_cron_schedule

Class BKAP_Gcal_Event

Handler for adding imported events as a post.

Package: BKAP\Google-Calendar-Sync
Author: Tyche Softwares
Class: BKAP_Gcal_Event
Located at includes/class-bkap-gcal-event.php

Methods summary

public
# __construct( int/array/obj $gcal_event = false )

Constructor, possibly sets up with post or id belonging to existing booking or supplied with an array to construct a new booking

Constructor, possibly sets up with post or id belonging to existing booking or supplied with an array to construct a new booking

Parameters

$gcal_event

Since

4.2.0
public
# populate_data( integer $event_id )

Populate the data with the id of the event provided Will query for the post belonging to this event and store it

Populate the data with the id of the event provided Will query for the post belonging to this event and store it

Parameters

$event_id

Since

4.2.0
public
# create( string $status = 'bkap-unmapped' )

Actual create for the new event

Actual create for the new event

Parameters

$status
for new event

Since

4.2.0
public String
# get_status( Bool $raw = true )

Returns the status of this booking

Returns the status of this booking

Parameters

$raw
ask for pretty status name (if false)

Returns

String
of the booking status

Since

4.2.0
public Start
# get_start( )

Returns the Start Date

Returns the Start Date

Returns

Start
Date as strtotime

Since

4.2.0
public End
# get_end( )

Returns the End Date

Returns the End Date

Returns

End
Date as strtotime

Since

4.2.0
public Time
# get_time( )

Returns the Time Slot

Returns the Time Slot

Returns

Time
Slot as H:i

Since

4.2.0
public Date
# get_start_date( )

Returns the Start Date

Returns the Start Date

Returns

Date
in the format set in Booking->Settings->Date Format

Since

4.2.0
public Date
# get_end_date( )

Returns the End Date

Returns the End Date

Returns

Date
in the format set in Booking->Settings->Date Format

Since

4.2.0
public Start
# get_start_time( )

Returns Start Time

Returns Start Time

Returns

Start
Time in the format set in Booking->Settings->Time Format

Since

4.2.0
public Start
# get_end_time( )

Returns Start Time

Returns Start Time

Returns

Start
Time in the format set in Booking->Settings->Time Format

Since

4.2.0
public Time
# get_tdif( )

Calculate the time difference for UTC and the TimeZone set for the website.

Calculate the time difference for UTC and the TimeZone set for the website.

Returns

Time
Difference $tdif

Since

4.2.0
public string
# get_failed_reason( )

Failed reason of the mapping of event

Failed reason of the mapping of event

Returns

string
$failed_reason

Since

4.2.0
public boolean
# update_status( string $status )

Set the new status for this event

Set the new status for this event

Parameters

$status

Returns

boolean

Properties summary

public $id

Public

int
#
public $populated

Public

bool
#
public $post

Public

object
#
public $status

Public

string
#
API documentation generated by ApiGen