PHP Class IMP_Mime_Status, horde

Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$views array Views to display this status in.

Protected Properties

Свойство Type Description
$_domid string DOM ID to use for the status block.
$_icon string Icon image HTML.
$_part Horde_Mime_Part MIME Part that this status object refers to.
$_text array List of text to output. Each entry will be output on a newline.

Méthodes publiques

Méthode Description
__construct ( Horde_Mime_Part $part = null, mixed $text = null ) Constructor.
__toString ( ) : string Output status block HTML.
action ( integer $type ) Pre-defined actions.
addMimeAction ( string $action, string $text, array $attr = [] ) Adds a MIME Viewer action to the status text.
addText ( mixed $text ) Adds text line(s) to the output.
domid ( string $id = null ) Set a DOM ID for the status block.
icon ( string $img, string $alt = null ) Set the icon to use for the status block (Default: no icon).

Method Details

__construct() public méthode

Constructor.
public __construct ( Horde_Mime_Part $part = null, mixed $text = null )
$part Horde_Mime_Part MIME Part.
$text mixed See addText().

__toString() public méthode

Output status block HTML.
public __toString ( ) : string
Résultat string The formatted status message HTML.

action() public méthode

Pre-defined actions.
public action ( integer $type )
$type integer The action type.

addMimeAction() public méthode

Adds a MIME Viewer action to the status text.
public addMimeAction ( string $action, string $text, array $attr = [] )
$action string Action ID.
$text string Action description.
$attr array Additional attributes.

addText() public méthode

Adds text line(s) to the output.
public addText ( mixed $text )
$text mixed Either a line of text or an array of lines to add.

domid() public méthode

Set a DOM ID for the status block.
public domid ( string $id = null )
$id string The DOM ID to use.

icon() public méthode

Set the icon to use for the status block (Default: no icon).
public icon ( string $img, string $alt = null )
$img string The image file.
$alt string ALT text to use.

Property Details

$_domid protected_oe property

DOM ID to use for the status block.
protected string $_domid
Résultat string

$_icon protected_oe property

Icon image HTML.
protected string $_icon
Résultat string

$_part protected_oe property

MIME Part that this status object refers to.
protected Horde_Mime_Part $_part
Résultat Horde_Mime_Part

$_text protected_oe property

List of text to output. Each entry will be output on a newline.
protected array $_text
Résultat array

$views public_oe property

Views to display this status in.
public array $views
Résultat array