YiiFoundation
  • Namespace
  • Class
  • Tree

Namespaces

  • foundation
    • enum
    • exception
    • helpers
    • widgets
      • base
  • PHP

Classes

  • Alert
  • ArrayHelper
  • Button
  • Foundation
  • Html
  • Icon
  • Nav
  • Panel
  • Pricing
  • Progress
  • Typo

Class Alert

Alert renders a Foundation alert

Namespace: foundation\helpers
Package: foundation\helpers
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at helpers/Alert.php

Methods summary

public static string
# success( string $content, array $htmlOptions = array(), string $close = '&times' )

Generates a success alert

Generates a success alert

Parameters

$content
string
$content the text within the alert box
$htmlOptions
array
$htmlOptions the HTML attributes of the alert box
$close
string
$close the label for the close button. Set to false if you don't wish to display it.

Returns

string
the alert box
public static string
# important( string $content, array $htmlOptions = array(), string $close = '&times' )

Generates an red coloured alert box

Generates an red coloured alert box

Parameters

$content
string
$content the text within the alert box
$htmlOptions
array
$htmlOptions the HTML attributes of the alert box
$close
string
$close the label for the close button. Set to false if you don't wish to display it.

Returns

string
the alert box
public static string
# secondary( string $content, array $htmlOptions = array(), string $close = '&times' )

Generates a secondary alert box

Generates a secondary alert box

Parameters

$content
string
$content the text within the alert box
$htmlOptions
array
$htmlOptions the HTML attributes of the alert box
$close
string
$close the label for the close button. Set to false if you don't wish to display it.

Returns

string
the alert box
public static string
# alert( string $content, array $htmlOptions = array(), string $close = '&times' )

Returns an alert box

Returns an alert box

Parameters

$content
string
$content the text within the alert box
$htmlOptions
array
$htmlOptions the HTML attributes of the alert box
$close
string
$close the label for the close button. Set to false if you don't wish to display it.

Returns

string
the alert box

See

http://foundation.zurb.com/docs/components/alert-boxes.html
public static string
# closeLink( string $label = '&times;', array $htmlOptions = array() )

Generates a close link.

Generates a close link.

Parameters

$label
string
$label the link label text.
$htmlOptions
array
$htmlOptions additional HTML attributes.

Returns

string
the generated link.

Magic methods summary

YiiFoundation API documentation generated by ApiGen 2.8.0