PHP Class MC4WP_Debug_Log_Reader

Afficher le fichier Open project: dannyvankooten/mailchimp-for-wordpress

Méthodes publiques

Méthode Description
__construct ( $file ) MC4WP_Debug_Log_Reader constructor.
all ( ) : string
lines ( integer $start, integer $number ) : string Reads X number of lines.
read ( ) : string | null
read_as_html ( ) : string

Private Methods

Méthode Description
seek_line_from_end ( integer $n ) Sets file pointer to $n of lines from the end of file.

Method Details

__construct() public méthode

MC4WP_Debug_Log_Reader constructor.
public __construct ( $file )
$file

all() public méthode

public all ( ) : string
Résultat string

lines() public méthode

If $start is negative, reads from end of log file.
public lines ( integer $start, integer $number ) : string
$start integer
$number integer
Résultat string

read() public méthode

public read ( ) : string | null
Résultat string | null

read_as_html() public méthode

public read_as_html ( ) : string
Résultat string