Documentation

ScriptManager extends AutoService
in package
implements HookInterface

Manage the iframe entry-point script.

Tags
service

iframe.script

Table of Contents

Interfaces

HookInterface
Interface HookInterface

Constants

CHECK_NAME  = 'iframeInstall'
The symbolic of the system status-check which monitors the script.

Properties

$iframe  : Iframe

Methods

getCurrent()  : string|null
getMeta()  : array<string|int, mixed>|null
Read metadata about the existing script.
getPath()  : string
Get the local path to the IFRAME entry-point.
hook_civicrm_check()  : void
install()  : void
isInstallable()  : bool
render()  : string
Generate the literal code for the entry-point script.
relativize()  : string
Convert the absolute path of $target to a relative path (as seen from $base).

Constants

CHECK_NAME

The symbolic of the system status-check which monitors the script.

public mixed CHECK_NAME = 'iframeInstall'

Properties

Methods

getCurrent()

public getCurrent() : string|null
Return values
string|null

getMeta()

Read metadata about the existing script.

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

getPath()

Get the local path to the IFRAME entry-point.

public getPath() : string
Return values
string

hook_civicrm_check()

public hook_civicrm_check(mixed &$messages[, mixed $statusNames = [] ][, mixed $includeDisabled = FALSE ]) : void
Parameters
$messages : mixed
$statusNames : mixed = []
$includeDisabled : mixed = FALSE
Tags
see
CRM_Utils_Hook::check()

isInstallable()

public isInstallable() : bool
Return values
bool

render()

Generate the literal code for the entry-point script.

public render(string $sourceClass) : string
Parameters
$sourceClass : string

Ex: 'Civi\Iframe\EntryPoint\Drupal'

Return values
string

relativize()

Convert the absolute path of $target to a relative path (as seen from $base).

protected relativize(string $target, string $base) : string

This variant will attempt to use ../.

Parameters
$target : string
$base : string
Return values
string

        
On this page

Search results