class UserInterface (View source)

Useful functions for generating elements on the Concrete interface.

Properties

static $menuItems

Methods

string
submit(string $text, bool|string $formID = false, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a submit button in the Concrete style.

string
button(string $text, string $href, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a simple link button in the Concrete style.

string
buttonJs(string $text, string $onclick, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a JavaScript function button in the Concrete style.

button_js($text, $onclick, $buttonAlign = 'right', $innerClass = null, $args = []) deprecated

No description

string
buttons(string $buttons = null)

Outputs button text passed as arguments with a special Concrete wrapper for positioning


   $bh->buttons($myButton1, $myButton2, $myButton3);
```.

string
getQuickNavigationLinkHTML(Page $c)

No description

bool
showWhiteLabelMessage()

No description

string
getToolbarLogoSRC()

No description

false
showHelpOverlay() deprecated

No description

trackHelpOverlayDisplayed() deprecated

No description

clearInterfaceItemsCache()

Clears the Interface Items Cache (clears the session).

cacheInterfaceItems()

Cache the interface items.

string
pagetabs(Page[] $tabs)

No description

string
tabs($tabs, null|string $id = null)

No description

renderError(string $title, string $error, bool|Exception $exception = false)

No description

buildErrorResponse(string $title, string $error, bool|Exception $exception = false)

No description

string
notify(array $arguments)

No description

Details

string submit(string $text, bool|string $formID = false, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a submit button in the Concrete style.

Parameters

string $text

The text of the button

bool|string $formID

The form this button will submit

string $buttonAlign
string $innerClass
array $args

Extra args passed to the link

Return Value

string

string button(string $text, string $href, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a simple link button in the Concrete style.

Parameters

string $text

The text of the button

string $href
string $buttonAlign
string $innerClass
array $args

Extra args passed to the link

Return Value

string

string buttonJs(string $text, string $onclick, string $buttonAlign = 'right', string $innerClass = null, array $args = [])

Generates a JavaScript function button in the Concrete style.

Parameters

string $text

The text of the button

string $onclick
string $buttonAlign
string $innerClass
  • no longer used
array $args

Extra args passed to the link

Return Value

string

button_js($text, $onclick, $buttonAlign = 'right', $innerClass = null, $args = []) deprecated

deprecated

No description

Parameters

$text
$onclick
$buttonAlign
$innerClass
$args

string buttons(string $buttons = null)

Outputs button text passed as arguments with a special Concrete wrapper for positioning


   $bh->buttons($myButton1, $myButton2, $myButton3);
```.

Parameters

string $buttons

Return Value

string

string getQuickNavigationLinkHTML(Page $c)

No description

Parameters

Page $c

Return Value

string

bool showWhiteLabelMessage()

No description

Return Value

bool

string getToolbarLogoSRC()

No description

Return Value

string

false showHelpOverlay() deprecated

deprecated There's no more an "Introduction" dialog: we now have a Help panel.

No description

Return Value

false

trackHelpOverlayDisplayed() deprecated

deprecated There's no more an "Introduction" dialog: we now have a Help panel.

No description

clearInterfaceItemsCache()

Clears the Interface Items Cache (clears the session).

cacheInterfaceItems()

Cache the interface items.

string pagetabs(Page[] $tabs)

No description

Parameters

Page[] $tabs

Return Value

string

string tabs($tabs, null|string $id = null)

No description

Parameters

$tabs
null|string $id

Return Value

string

renderError(string $title, string $error, bool|Exception $exception = false)

No description

Parameters

string $title
string $error
bool|Exception $exception

buildErrorResponse(string $title, string $error, bool|Exception $exception = false)

No description

Parameters

string $title
string $error
bool|Exception $exception

string notify(array $arguments)

No description

Parameters

array $arguments

Return Value

string