HotelBookingPlugin
in package

Table of Contents

$_pluginDirPath  : mixed
$_pluginDirUrl  : mixed
$_pluginFile  : mixed
$account  : User
$actionsHandler  : ActionsHandler
$adminScriptManager  : AdminScriptManager
$advanced  : Advanced
$ajax  : Ajax
$attributeRepository  : mixed
$attributesPersistence  : mixed
$author  : mixed
$autoloader  : Autoloader
$blockScriptManager  : BlockScriptManager
$blocksRender  : BlocksRender
$bookingPersistence  : mixed
$bookingRepository  : mixed
$bookingRulesPage  : BookingRulesMenuPage
$bookingsExporter  : BookingsExporter
$calendarFeed  : CalendarFeed
$calendarMenuPage  : CalendarMenuPage
$capabilitiesAndRoles  : CapabilitiesAndRoles
$coreAPI  : CoreAPI
$couponPersistence  : mixed
$couponRepository  : mixed
$createBookingMenuPage  : CreateBookingMenuPage
$cronManager  : CronManager
$currentRoomType  : RoomType
$customersMenuPage  : CustomersMenuPage
$editBookingMenuPage  : EditBookingMenuPage
$emails  : Emails
$extensionsPage  : ExtensionsMenuPage
$gatewayManager  : GatewayManager
$iCalImportMenuPage  : iCalImportMenuPage
$iCalMenuPage  : iCalMenuPage
$iCalSynchronizer  : BackgroundSynchronizer
$iCalSyncLogsMenuPage  : iCalSyncLogsMenuPage
$iCalUploader  : BackgroundUploader
$importer  : Importer
$instance  : HotelBookingPlugin
$languageMenuPage  : LanguageMenuPage
$menus  : Menus
$name  : mixed
$notices  : Notices
$paymentManager  : PaymentManager
$paymentPersistence  : mixed
$paymentRepository  : mixed
$pluginDir  : mixed
$pluginDirUrl  : mixed
$pluginSlug  : mixed
$pluginStoreUri  : mixed
$postTypes  : CustomPostTypes
$prefix  : mixed
$productDir  : mixed
$productSlug  : mixed
$publicScriptManager  : PublicScriptManager
$queuedSynchronizer  : QueuedSynchronizer
$ratePersistence  : mixed
$rateRepository  : mixed
$reportsPage  : ReportsMenuPage
$reservationRequest  : ReservationRequest
$reservedRoomPersistence  : mixed
$reservedRoomRepository  : mixed
$roles  : Roles
$roomPersistence  : mixed
$roomRepository  : mixed
$roomsGeneratorMenuPage  : RoomsGeneratorMenuPage
$roomTypeMicrodata  : mixed
$roomTypePersistence  : mixed
$roomTypeRepository  : mixed
$rulesChecker  : RulesChecker
$searchParametersStorage  : SearchParametersStorage
$seasonPersistence  : mixed
$seasonRepository  : mixed
$servicePersistence  : mixed
$serviceRepository  : mixed
$session  : Session
$settings  : SettingsRegistry
$settingsMenuPage  : SettingsMenuPage
$shortcodes  : Shortcodes
$shortcodesMenuPage  : ShortcodesMenuPage
$syncUrlsRepository  : mixed
$taxesAndFeesPage  : TaxesAndFeesMenuPage
$translation  : Translation
$upgrader  : Upgrader
$userActions  : UserActions
$version  : mixed
$wizard  : Wizard
account()  : mixed
activate()  : mixed
addPrefix()  : mixed
afterInstall()  : mixed
capabilitiesAndRoles()  : mixed
createNewBlog()  : mixed
When a new Blog is created in multisite, see if plugin is network activated, and run the installer
createTables()  : mixed
cronManager()  : CronManager
customers()  : mixed
deactivate()  : mixed
deleteBlog()  : mixed
emails()  : Emails
enqueueAdminScripts()  : mixed
enqueuePublicScripts()  : mixed
gatewayManager()  : GatewayManager
getAdminScriptManager()  : AdminScriptManager
getAdvanced()  : Advanced
getAjax()  : Ajax
getAjaxUrl()  : string
getAttributeRepository()  : AttributeRepository
getAttributesPersistence()  : AttributesPersistence
getBlocksRender()  : BlocksRender
getBookingPersistence()  : BookingPersistence
getBookingRepository()  : BookingRepository
getBookingRulesPage()  : BookingRulesMenuPage
getBookingsExporter()  : BookingsExporter
getCalendarMenuPage()  : CalendarMenuPage
getCoreAPI()  : mixed
getCouponPersistence()  : CPTPersistence
getCouponRepository()  : CouponRepository
getCreateBookingMenuPage()  : CreateBookingMenuPage
getCurrentRoomType()  : RoomType
getCustomersMenuPage()  : CustomersMenuPage
getCustomRolesVersion()  : mixed
getEditBookingMenuPage()  : EditBookingMenuPage
getExtensionsPage()  : ExtensionsMenuPage
getICalImportMenuPage()  : iCalImportMenuPage
getICalMenuPage()  : iCalMenuPage
getICalSynchronizer()  : BackgroundSynchronizer
getICalSyncLogsMenuPage()  : iCalSyncLogsMenuPage
getICalUploader()  : BackgroundUploader
getImporter()  : Importer
getInstance()  : mixed
getName()  : string
getPaymentPersistence()  : CPTPersistence
getPaymentRepository()  : PaymentRepository
getPluginData()  : array<string|int, mixed>
getPluginDir()  : string
Retrieve path to plugin directory
getPluginPath()  : string
Retrieve full path for the relative to plugin root path.
getPluginSlug()  : string
Retrieve the slug of the plugin (basename of the plugin file).
getPluginStoreUri()  : string
getPluginUrl()  : mixed
getPrefix()  : mixed
getProductSlug()  : string
Retrieve the EDD product slug.
getPublicScriptManager()  : PublicScriptManager
getQueuedSynchronizer()  : QueuedSynchronizer
getRatePersistence()  : RatePersistence
getRateRepository()  : RateRepository
getReportsPage()  : ReportsMenuPage
getReservedRoomPersistence()  : ReservedRoomPersistence
getReservedRoomRepository()  : ReservedRoomRepository
getRoomPersistence()  : RoomPersistence
getRoomRepository()  : RoomRepository
getRoomsGeneratorMenuPage()  : RoomsGeneratorMenuPage
getRoomTypePersistence()  : RoomTypePersistence
getRoomTypeRepository()  : RoomTypeRepository
getRulesChecker()  : RulesChecker
getSeasonPersistence()  : CPTPersistence
getSeasonRepository()  : SeasonRepository
getServicePersistence()  : CPTPersistence
getServiceRepository()  : ServiceRepository
getSession()  : Session
getSettingsMenuPage()  : SettingsMenuPage
getShortcodes()  : Shortcodes
getShortcodesMenuPage()  : ShortcodesMenuPage
getSlug()  : string
Retrieve the slug of the plugin (basename of the plugin file).
getSyncUrlsRepository()  : SyncUrlsRepository
getTaxesAndFeesPage()  : TaxesAndFeesMenuPage
getTemplatePath()  : string
Retrieve relative to theme root path to templates.
getTextDomain()  : string
getUserActions()  : UserActions
getVersion()  : string
Retreive version of plugin
initAutoUpdater()  : mixed
install()  : mixed
isAjax()  : bool
Determines whether the current request is a WordPress Ajax request.
isSiteSSL()  : bool
Check if the home URL is https.
isWpSupportsTermmeta()  : bool
Table wp_termmeta required, for instance, to add "custom order" feature for room attributes.
isWPVersion()  : bool
loadTextDomain()  : bool
menus()  : Menus
notices()  : Notices
paymentManager()  : PaymentManager
postTypes()  : CustomPostTypes
pushRoomTypeMicrodata()  : mixed
removeUserRoles()  : mixed
requireOnce()  : mixed
reservationRequest()  : ReservationRequest
rewriteRules()  : mixed
roles()  : mixed
searchParametersStorage()  : SearchParametersStorage
setCurrentRoomType()  : mixed
setCustomRolesVersion()  : mixed
setPluginDirPathAndUrl()  : mixed
Fix for symlinked plugin
settings()  : SettingsRegistry
setupRoomTypeMicrodata()  : mixed
translation()  : Translation
upgrader()  : Upgrader
userActions()  : UserActions
__construct()  : mixed
afterConstruct()  : mixed
createPages()  : mixed
initBookingRules()  : mixed
initRepositories()  : mixed

Properties

$_pluginDirPath

private static mixed $_pluginDirPath

$_pluginDirUrl

private static mixed $_pluginDirUrl

$_pluginFile

private static mixed $_pluginFile

$account

private User $account

$actionsHandler

private ActionsHandler $actionsHandler
Tags
since
3.6.0

(replaced the $downloader)

$advanced

private Advanced $advanced

$ajax

private Ajax $ajax

$attributeRepository

private mixed $attributeRepository

$attributesPersistence

private mixed $attributesPersistence

$author

private mixed $author

$autoloader

private Autoloader $autoloader

$blocksRender

private BlocksRender $blocksRender

$bookingPersistence

private mixed $bookingPersistence

$bookingRepository

private mixed $bookingRepository

$bookingsExporter

private BookingsExporter $bookingsExporter
Tags
since
3.5.0

$calendarFeed

private CalendarFeed $calendarFeed

$coreAPI

private CoreAPI $coreAPI = \null

$couponPersistence

private mixed $couponPersistence

$couponRepository

private mixed $couponRepository

$cronManager

private CronManager $cronManager

$currentRoomType

private RoomType $currentRoomType

$editBookingMenuPage

private EditBookingMenuPage $editBookingMenuPage
Tags
since
3.8

$emails

private Emails $emails

$gatewayManager

private GatewayManager $gatewayManager

$iCalMenuPage

private iCalMenuPage $iCalMenuPage

$iCalSynchronizer

private BackgroundSynchronizer $iCalSynchronizer

$iCalUploader

private BackgroundUploader $iCalUploader

$importer

private Importer $importer

$instance

private static HotelBookingPlugin $instance = \null

$menus

private Menus $menus

$name

private mixed $name

$notices

private Notices $notices

$paymentManager

private PaymentManager $paymentManager

$paymentPersistence

private mixed $paymentPersistence

$paymentRepository

private mixed $paymentRepository

$pluginDir

private mixed $pluginDir

$pluginDirUrl

private mixed $pluginDirUrl

$pluginSlug

private mixed $pluginSlug

$pluginStoreUri

private mixed $pluginStoreUri
Tags
since
3.6.0

$prefix

private mixed $prefix

$productDir

private mixed $productDir

$productSlug

private mixed $productSlug

$queuedSynchronizer

private QueuedSynchronizer $queuedSynchronizer

$ratePersistence

private mixed $ratePersistence

$rateRepository

private mixed $rateRepository

$reportsPage

private ReportsMenuPage $reportsPage
Tags
since
3.5.0

$reservationRequest

private ReservationRequest $reservationRequest
Tags
since
3.5.0

$reservedRoomPersistence

private mixed $reservedRoomPersistence

$reservedRoomRepository

private mixed $reservedRoomRepository

$roles

private Roles $roles

$roomPersistence

private mixed $roomPersistence

$roomRepository

private mixed $roomRepository

$roomTypeMicrodata

private mixed $roomTypeMicrodata = \null

$roomTypePersistence

private mixed $roomTypePersistence

$roomTypeRepository

private mixed $roomTypeRepository

$rulesChecker

private RulesChecker $rulesChecker

$seasonPersistence

private mixed $seasonPersistence

$seasonRepository

private mixed $seasonRepository

$servicePersistence

private mixed $servicePersistence

$serviceRepository

private mixed $serviceRepository

$session

private Session $session

$shortcodes

private Shortcodes $shortcodes

$syncUrlsRepository

private mixed $syncUrlsRepository

$translation

private Translation $translation

$upgrader

private Upgrader $upgrader

$userActions

private UserActions $userActions

$version

private mixed $version

$wizard

private Wizard $wizard

Methods

account()

public account() : mixed
Tags
since
4.2.0
Return values
mixed

activate()

public static activate([mixed $network_wide = false ]) : mixed
Parameters
$network_wide : mixed = false
Tags
since
3.9.4

bool $network_wide

Return values
mixed

addPrefix()

public addPrefix(mixed $str[, mixed $separator = '-' ]) : mixed
Parameters
$str : mixed
$separator : mixed = '-'
Return values
mixed

afterInstall()

public static afterInstall() : mixed
Tags
since
3.9.4
Return values
mixed

capabilitiesAndRoles()

public capabilitiesAndRoles() : mixed
Return values
mixed

createNewBlog()

When a new Blog is created in multisite, see if plugin is network activated, and run the installer

public createNewBlog(int|WP_Site $blog) : mixed
Parameters
$blog : int|WP_Site
Tags
since
3.9.4
Return values
mixed

createTables()

public static createTables() : mixed
Return values
mixed

customers()

public customers() : mixed
Tags
since
4.2.0
Return values
mixed

deactivate()

public static deactivate() : mixed
Return values
mixed

deleteBlog()

public deleteBlog(array<string|int, mixed> $tables, int $blog_id) : mixed
Parameters
$tables : array<string|int, mixed>
$blog_id : int
Tags
since
3.9.4
Return values
mixed

emails()

public emails() : Emails
Return values
Emails

enqueueAdminScripts()

public enqueueAdminScripts() : mixed
Return values
mixed

enqueuePublicScripts()

public enqueuePublicScripts() : mixed
Return values
mixed

getAdvanced()

public getAdvanced() : Advanced
Return values
Advanced

getAjax()

public getAjax() : Ajax
Return values
Ajax

getAjaxUrl()

public getAjaxUrl() : string
Return values
string

getCoreAPI()

public getCoreAPI() : mixed
Return values
mixed

getCurrentRoomType()

public getCurrentRoomType() : RoomType
Return values
RoomType

getCustomRolesVersion()

public static getCustomRolesVersion() : mixed
Return values
mixed

getICalSynchronizer()

public getICalSynchronizer() : BackgroundSynchronizer
Return values
BackgroundSynchronizer

getICalUploader()

public getICalUploader() : BackgroundUploader
Return values
BackgroundUploader

getImporter()

public getImporter() : Importer
Return values
Importer

getInstance()

public static getInstance() : mixed
Return values
mixed

getName()

public getName() : string
Tags
since
3.6.0
Return values
string

getPluginData()

public getPluginData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPluginDir()

Retrieve path to plugin directory

public getPluginDir() : string
Return values
string

getPluginPath()

Retrieve full path for the relative to plugin root path.

public getPluginPath([string $relativePath = '' ]) : string
Parameters
$relativePath : string = ''
Return values
string

getPluginSlug()

Retrieve the slug of the plugin (basename of the plugin file).

public getPluginSlug() : string
Tags
since
3.8.2
Return values
string

getPluginStoreUri()

public getPluginStoreUri() : string
Tags
since
3.6.0
Return values
string

getPluginUrl()

public getPluginUrl([mixed $relativePath = '' ]) : mixed
Parameters
$relativePath : mixed = ''
Return values
mixed

getPrefix()

public getPrefix() : mixed
Return values
mixed

getProductSlug()

Retrieve the EDD product slug.

public getProductSlug() : string
Tags
since
3.8.2
Return values
string

getQueuedSynchronizer()

public getQueuedSynchronizer() : QueuedSynchronizer
Return values
QueuedSynchronizer

getSession()

public getSession() : Session
Return values
Session

getShortcodes()

public getShortcodes() : Shortcodes
Return values
Shortcodes

getTemplatePath()

Retrieve relative to theme root path to templates.

public getTemplatePath() : string
Return values
string

getTextDomain()

public getTextDomain() : string
Tags
since
3.8.2
Return values
string

getUserActions()

public getUserActions() : UserActions
Return values
UserActions

getVersion()

Retreive version of plugin

public getVersion() : string
Return values
string

initAutoUpdater()

public initAutoUpdater() : mixed
Return values
mixed

install()

public static install() : mixed
Tags
since
3.9.4
Return values
mixed

isAjax()

Determines whether the current request is a WordPress Ajax request.

public isAjax() : bool
Return values
bool

isSiteSSL()

Check if the home URL is https.

public isSiteSSL() : bool
Return values
bool

isWpSupportsTermmeta()

Table wp_termmeta required, for instance, to add "custom order" feature for room attributes.

public isWpSupportsTermmeta() : bool
Tags
see
https://codex.wordpress.org/Current_events
Return values
bool

isWPVersion()

public isWPVersion(string $version[, string $operator = '=' ]) : bool
Parameters
$version : string

version to compare with wp version

$operator : string = '='

Optional. Possible operators are: <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne respectively. Default =. This parameter is case-sensitive, values should be lowercase.

Return values
bool

menus()

public menus() : Menus
Return values
Menus

notices()

public notices() : Notices
Tags
since
3.7.0
Return values
Notices

pushRoomTypeMicrodata()

public pushRoomTypeMicrodata() : mixed
Return values
mixed

removeUserRoles()

public static removeUserRoles() : mixed
Tags
since
4.0.0
Return values
mixed

requireOnce()

public requireOnce(mixed $relativePath) : mixed
Parameters
$relativePath : mixed
Return values
mixed

rewriteRules()

public rewriteRules() : mixed
Tags
since
4.2.0
Return values
mixed

roles()

public roles() : mixed
Return values
mixed

setCurrentRoomType()

public setCurrentRoomType(WP_Post|int $post) : mixed
Parameters
$post : WP_Post|int
Return values
mixed

setCustomRolesVersion()

public static setCustomRolesVersion(mixed $version) : mixed
Parameters
$version : mixed
Return values
mixed

setPluginDirPathAndUrl()

Fix for symlinked plugin

public static setPluginDirPathAndUrl(string $file, string|null $plugin, string|null $network_plugin) : mixed
Parameters
$file : string
$plugin : string|null
$network_plugin : string|null
Tags
global

string $wp_version

Return values
mixed

setupRoomTypeMicrodata()

public setupRoomTypeMicrodata() : mixed
Return values
mixed

upgrader()

public upgrader() : Upgrader
Return values
Upgrader

__construct()

private __construct() : mixed
Return values
mixed

afterConstruct()

private afterConstruct() : mixed
Tags
since
3.7.2

added new action - "mphb_loaded".

Return values
mixed

createPages()

private createPages() : mixed
Tags
since
4.0.0
  • Custom capabilities used to allow access to admin pages.
Return values
mixed

initBookingRules()

private initBookingRules() : mixed
Return values
mixed

initRepositories()

private initRepositories() : mixed
Return values
mixed

Search results