PHP Class IMP_Contents_View, horde

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

Protected Properties

Свойство Type Description
$_contents IMP_Contents

Méthodes publiques

Méthode Description
__construct ( IMP_Indices $indices )
addToken ( array $params = [] ) : array Adds the view token to a parameter list.
checkToken ( Horde_Variables $vars ) Check for a download token.
downloadAll ( )
downloadAttach ( $id )
downloadRender ( $id, $mode, $ctype = null )
downloadUrl ( string $filename, array $params = [] ) : Horde_Url Returns a URL to be used for downloading data.
printAttach ( $id )
saveMessage ( )
viewAttach ( $id, $mode, $autodetect = false, $ctype = null )
viewSource ( )

Méthodes protégées

Méthode Description
_getRawDownloadPart ( string $id ) : Horde_Mime_Part Get a MIME Part for use in creating download.

Method Details

__construct() public méthode

public __construct ( IMP_Indices $indices )
$indices IMP_Indices

_getRawDownloadPart() protected méthode

Get a MIME Part for use in creating download.
protected _getRawDownloadPart ( string $id ) : Horde_Mime_Part
$id string MIME ID.
Résultat Horde_Mime_Part MIME part, or null on error.

addToken() public static méthode

Adds the view token to a parameter list.
public static addToken ( array $params = [] ) : array
$params array URL parameters.
Résultat array Parameter list with token added.

checkToken() public méthode

Check for a download token.
public checkToken ( Horde_Variables $vars )
$vars Horde_Variables Form variables.

downloadAll() public méthode

public downloadAll ( )

downloadAttach() public méthode

public downloadAttach ( $id )

downloadRender() public méthode

public downloadRender ( $id, $mode, $ctype = null )

downloadUrl() public static méthode

IMP adds token data, since the data displayed is coming from a remote source.
public static downloadUrl ( string $filename, array $params = [] ) : Horde_Url
$filename string The filename of the download data.
$params array Additional URL parameters needed.
Résultat Horde_Url The download URL.

printAttach() public méthode

public printAttach ( $id )

saveMessage() public méthode

public saveMessage ( )

viewAttach() public méthode

public viewAttach ( $id, $mode, $autodetect = false, $ctype = null )

viewSource() public méthode

public viewSource ( )

Property Details

$_contents protected_oe property

protected IMP_Contents $_contents
Résultat IMP_Contents