kernel/private/classes/ezpautoloadclioutput.php
\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.
nullDetails- Type
- array

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

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

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

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

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

initPhase2(
)
:
voidSets 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
)
:
voidOutputs 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
)
:
voidUpdates the internal data array for each $phase
| Name | Type | Description |
|---|---|---|
| $phase | int | |
| $data | array |