Class rex_view

Package: redaxo\core
Located at redaxo/src/core/lib/view.php

Methods summary

public static
# addCssFile( string $file, string $media = 'all' )

Adds a CSS file.

public static string[]
# getCssFiles( )

Returns the CSS files.

public static
# addJsFile( string $file, array $options = [] )

Adds a JS file.

public static string[]
# getJsFiles( )

Returns the JS files.

public static array
# getJsFilesWithOptions( )

Returns all JS files besides their options.

public static
# setJsProperty( string $key, mixed $value )

Sets a JS property.

public static array
# getJsProperties( )

Returns the JS properties.

public static
# setFavicon( string $file )

Sets the favicon path.

public static string
# getFavicon( )

Returns the favicon.

public static string
# info( string $message, string $cssClass = '' )

Returns an info message.

public static string
# success( string $message, string $cssClass = '' )

Returns a success message.

public static string
# warning( string $message, string $cssClass = '' )

Returns an warning message.

public static string
# error( string $message, string $cssClass = '' )

Returns an error message.

public static string
# toolbar( string $content, string $brand = null, string $cssClass = null, mixed $inverse = false )

Returns a toolbar.

public static string
# content( string $content, string $title = '' )

Returns a content block.

public static string
# title( string $head, null|string|array $subtitle = null )

Returns the formatted title.

public static string
# clangSwitch( rex_context $context, boolean $drop = true )

Returns a clang switch.

public static string
# clangSwitchAsButtons( rex_context $context, boolean $drop = true )

Returns a clang switch.

public static string
# clangSwitchAsDropdown( rex_context $context )

Returns a clang switch.

Constants summary

string JS_DEFERED
#'defer'
string JS_ASYNC
#'async'
string JS_IMMUTABLE
#'immutable'