Class humhub\libs\Html

Inheritancehumhub\libs\Html » yii\bootstrap\Html
Available since version1.2

HTML Helpers

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addPjaxPrevention() humhub\libs\Html
backButton() Renders a back button humhub\libs\Html
beginTag() humhub\libs\Html
containerLink() Generates an link tag to a content container humhub\libs\Html
isPjaxEnabled() humhub\libs\Html
nonce() humhub\libs\Html
saveButton() Save button is a shortcut for the default submit button humhub\libs\Html
script() humhub\libs\Html
setNonce() humhub\libs\Html

Method Details

addPjaxPrevention() public static method (available since version 1.3)

public static boolean addPjaxPrevention ( &$options )
$options
backButton() public static method (available since version 1.2)

Renders a back button

See also humhub\libs\Html::a.

public static string backButton ( $url '', $options = [] )
$url string
$options array
return string

The back button

beginTag() public static method

public static void beginTag ( $name, $options = [] )
$name
$options
containerLink() public static method (available since version 1.2)

Generates an link tag to a content container

public static string containerLink ( humhub\modules\content\components\ContentContainerActiveRecord $container, $options = [] )
$container humhub\modules\content\components\ContentContainerActiveRecord

The content container

$options array

The html options

return string

The generated html a tag

isPjaxEnabled() public static method (available since version 1.4)

public static boolean isPjaxEnabled ( $options )
$options
nonce() public static method

public static void nonce ( )
saveButton() public static method (available since version 1.2)

Save button is a shortcut for the default submit button

See also \humhub\libs\submitButton.

public static string saveButton ( $label '', $options = [] )
$label string
$options array
return string

The button

script() public static method

public static string script ( $content, $options = [] )
$content string
$options array
setNonce() public static method

public static void setNonce ( &$options = [] )
$options