PHP Class MC4WP_Debug_Log_Reader

Datei anzeigen Open project: dannyvankooten/mailchimp-for-wordpress

Public Methods

Method 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

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

Method Details

__construct() public method

MC4WP_Debug_Log_Reader constructor.
public __construct ( $file )
$file

all() public method

public all ( ) : string
return string

lines() public method

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

read() public method

public read ( ) : string | null
return string | null

read_as_html() public method

public read_as_html ( ) : string
return string