Back to the module list

Output Text

The output text allow to return the provided data to a text format. It define the headers to inform the browser of the format.

If the data are an array, they are converted to an table to be human readable. The boolean types are converted to OK or FALSE string. The NULL type is converted to NULL string.

The class definition

Class Domframework\Outputtxt

Namespace Domframework

Description

/**
 Display in Text the data provided

Properties

public $table=true;
/**
 Display an array on table format (TRUE) or tree format (FALSE)

Methods

public function out ( $data)
/**
 Display in Text the data provided
 @param mixed $data The data to be displayed