iCalImportMenuPage extends AbstractMenuPage
in package

Process "upload" and "sync" calls. But render only "upload". All "sync" requests redirected to iCalSyncLogsMenuPage.

Table of Contents

$capability  : mixed
$menuSlug  : mixed
$menuTitle  : mixed
$name  : mixed
$order  : mixed
$pageTitle  : mixed
$parentMenu  : mixed
$screenId  : mixed
$titleActions  : array<string|int, mixed>
Custom actions that output just after the page heading
$action  : string
"upload" or "sync"
$fileUploaded  : bool
File uploaded and ready to import.
$isUploading  : bool
Background import is in progress.
$roomId  : int
__construct()  : mixed
addActions()  : mixed
addTitleAction()  : mixed
addTitleActionsScript()  : mixed
createMenu()  : mixed
enqueueAdminScripts()  : mixed
getName()  : mixed
getUrl()  : mixed
isCurrentPage()  : bool
onLoad()  : mixed
Process both uploads and syncs. But all syncs then will be redirected to page mphb_sync_logs.
render()  : mixed
Render upload page only. All syncs will be redirected to page mphb_sync_logs.
getMenuTitle()  : mixed
getPageTitle()  : mixed

Properties

$capability

protected mixed $capability

$menuSlug

protected mixed $menuSlug

$menuTitle

protected mixed $menuTitle

$name

protected mixed $name

$order

protected mixed $order

$pageTitle

protected mixed $pageTitle

$parentMenu

protected mixed $parentMenu

$screenId

protected mixed $screenId

$titleActions

Custom actions that output just after the page heading

protected array<string|int, mixed> $titleActions = array()

$action

"upload" or "sync"

private string $action = ''

$fileUploaded

File uploaded and ready to import.

private bool $fileUploaded = false

$isUploading

Background import is in progress.

private bool $isUploading = false

$roomId

private int $roomId = 0

Methods

__construct()

public __construct(mixed $name[, mixed $atts = array() ]) : mixed
Parameters
$name : mixed
$atts : mixed = array()
Return values
mixed

addActions()

public addActions() : mixed
Return values
mixed

addTitleAction()

public addTitleAction(mixed $label, mixed $url[, mixed $options = array() ]) : mixed
Parameters
$label : mixed
$url : mixed
$options : mixed = array()
Return values
mixed

addTitleActionsScript()

public addTitleActionsScript() : mixed
Return values
mixed

createMenu()

public createMenu() : mixed
Return values
mixed

enqueueAdminScripts()

public enqueueAdminScripts() : mixed
Tags
global

\WP_Scripts $wp_scripts

Return values
mixed

getName()

public getName() : mixed
Return values
mixed

getUrl()

public getUrl([mixed $additionalArgs = array() ]) : mixed
Parameters
$additionalArgs : mixed = array()
Return values
mixed

isCurrentPage()

public isCurrentPage([array<string|int, mixed> $atts = array() ]) : bool
Parameters
$atts : array<string|int, mixed> = array()
Tags
note

use function after admin_init hook (current_screen for ex.)

Return values
bool

onLoad()

Process both uploads and syncs. But all syncs then will be redirected to page mphb_sync_logs.

public onLoad() : mixed
Return values
mixed

render()

Render upload page only. All syncs will be redirected to page mphb_sync_logs.

public render() : mixed
Return values
mixed

getMenuTitle()

protected getMenuTitle() : mixed
Return values
mixed

getPageTitle()

protected getPageTitle() : mixed
Return values
mixed

Search results