kernel/private/classes/ezpautoloadclioutput.php

Show: inherited
Table of Contents

File containing the ezpAutoloadCliOutput class

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\ezpAutoloadCliOutput

Package: kernel

Utility class for providing CLI output and incremental progress information.

Parent(s)
\ezpAutoloadOutput

Properties

Propertyprotectedarray  $data= 'null'

Array holding information used to collect statistics in the different phases.

Default valuenullDetails
Type
array
Propertyprotected\ezcConsoleStatusBar  $fileSearchProgress= 'null'

Object controlling progress information for the file search phase.

Default valuenullDetails
Type
\ezcConsoleStatusBar
Propertyprotected\ezcConsoleOutput  $output= 'null'

The console output object

Default valuenullDetails
Type
\ezcConsoleOutput
Propertyprotected\ezcConsoleProgressbar  $tokenizerProgress= 'null'

Object controlling progress information for tokenization / class search phase.

Default valuenullDetails
Type
\ezcConsoleProgressbar

Methods

methodpublic__construct( ) : void

methodpublicfinishPhase1( ) : void

Closes down progress update for phase 1, also inserts some newlines to make sure output is displayed nicely.

methodpublicfinishPhase2( ) : void

Finishes progress output for class search phase.

Also inserts some extra newlines to make the output clearer.

methodpublicgetData( int $phase ) : array

Returns data array used to keep statistical information for each $phase.

Parameters
Name Type Description
$phase int
Returns
Type Description
array
Details
See
\eZAutoloadGenerator::OUTPUT_PROGRESS_PHASE1  
See
\eZAutoloadGenerator::OUTPUT_PROGRESS_PHASE2  
methodpublicinitPhase1( ) : void

Sets up the class for handling progress information for file searching phase.

methodpublicinitPhase2( ) : void

Sets up the class for displaying progress information for class search phase.

This method expects the total file count to be present in the internal $data array.

Example:

    $statArray = array( 'nFiles' => count( $fileList ),
                        'classCount' => 0,
                        'classAdded' => 0,
                      );

This array can set via the updateData() function.

Details
See
\function  
methodpublicoutputCli( string $message, string $type ) : void

Outputs a $message on the CLI, and formats it according to type.

Currently $type of "normal" and "warning" is supported.

Parameters
Name Type Description
$message string
$type string
methodpublicprogressUpdatePhase1( ) : void

Pushes an progress update for file searching phase.

methodpublicprogressUpdatePhase2( ) : void

Pushes a progress update for class search phase.

methodpublicupdateData( int $phase, array $data ) : void

Updates the internal data array for each $phase

Parameters
Name Type Description
$phase int
$data array
methodpublicupdateProgress( int $phase ) : void

Calls the correct phase progress update method depending on $phase

Parameters
Name Type Description
$phase int
Documentation was generated by DocBlox 0.18.1.