kernel/private/classes/ezpautoloadclioutput.php
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
Utility class for providing CLI output and incremental progress information.
- Parent(s)
- \ezpAutoloadOutput
Properties


array
$data= 'null'
Array holding information used to collect statistics in the different phases.
null
Details- Type
- array


\ezcConsoleStatusBar
$fileSearchProgress= 'null'
Object controlling progress information for the file search phase.
null
Details- Type
- \ezcConsoleStatusBar


\ezcConsoleOutput
$output= 'null'
The console output object
null
Details- Type
- \ezcConsoleOutput
Methods


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


finishPhase2(
)
:
void
Finishes progress output for class search phase.
Also inserts some extra newlines to make the output clearer.


getData(
int $phase
)
:
array
Returns data array used to keep statistical information for each $phase.
Name | Type | Description |
---|---|---|
$phase | int |
Type | Description |
---|---|
array |


initPhase2(
)
:
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.
- See
- \function


outputCli(
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.
Name | Type | Description |
---|---|---|
$message | string | |
$type | string |


updateData(
int $phase, array $data
)
:
void
Updates the internal data array for each $phase
Name | Type | Description |
---|---|---|
$phase | int | |
$data | array |