$93 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php53/usr/share/doc/pear/ConsoleTools/docs/

HOME
Current File : /opt/alt/php53/usr/share/doc/pear/ConsoleTools/docs//example_output.php
<?php
/**
 * Example for the usage of ezcConsoleOutput class.
 *
 * @package ConsoleTools
 * @version 1.6.1
 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */

require_once 'Base/src/base.php';

/**
 * Autoload ezc classes 
 * 
 * @param string $className 
 */
function __autoload( $className )
{
    ezcBase::autoload( $className );
}

// Create the output handler
$out = new ezcConsoleOutput();

// Set the verbosity to level 10
$out->options->verbosityLevel = 10;
// Enable auto wrapping of lines after 40 characters
$out->options->autobreak    = 40;

// Set the color of the default output format to green
$out->formats->default->color   = 'green';

// Set the color of the output format named 'success' to white
$out->formats->success->color   = 'white';
// Set the style of the output format named 'success' to bold
$out->formats->success->style   = array( 'bold' );

// Set the color of the output format named 'failure' to red
$out->formats->failure->color   = 'red';
// Set the style of the output format named 'failure' to bold
$out->formats->failure->style   = array( 'bold' );
// Set the background color of the output format named 'failure' to blue
$out->formats->failure->bgcolor = 'blue';

// Output text with default format
$out->outputText( 'This is default text ' );
// Output text with format 'success'
$out->outputText( 'including success message', 'success' );
// Some more output with default output.
$out->outputText( "and a manual linebreak.\n" );

// Manipulate the later output
$out->formats->success->color = 'green';
$out->formats->default->color = 'blue';

// This is visible, since we set verboseLevel to 10, and printed in default format (now blue)
$out->outputText( "Some verbose output.\n", null, 10 );
// This is not visible, since we set verboseLevel to 10
$out->outputText( "Some more verbose output.\n", null, 20 );
// This is visible, since we set verboseLevel to 10, and printed in format 'failure'
$out->outputText( "And some not so verbose, failure output.\n", 'failure', 5 );

?>

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
img
--
31 Aug 2024 7.05 AM
root / root
0755
CREDITS
0.224 KB
18 Dec 2019 6.15 PM
root / root
0644
LICENSE
1.533 KB
18 Dec 2019 6.15 PM
root / root
0644
example_input.php
2.642 KB
18 Dec 2019 6.15 PM
root / root
0644
example_menu_dialog_full.php
0.609 KB
18 Dec 2019 6.15 PM
root / root
0644
example_output.php
2.058 KB
18 Dec 2019 6.15 PM
root / root
0644
example_progressbar.php
3.361 KB
18 Dec 2019 6.15 PM
root / root
0644
example_progressmonitor.php
1.073 KB
18 Dec 2019 6.15 PM
root / root
0644
example_question_dialog_collection_full.php
0.599 KB
18 Dec 2019 6.15 PM
root / root
0644
example_question_dialog_factory_yesno.php
0.45 KB
18 Dec 2019 6.15 PM
root / root
0644
example_question_dialog_type_full.php
0.615 KB
18 Dec 2019 6.15 PM
root / root
0644
example_statusbar.php
0.964 KB
18 Dec 2019 6.15 PM
root / root
0644
example_table.php
2.092 KB
18 Dec 2019 6.15 PM
root / root
0644
example_table_2.php
1.705 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial.txt
23.918 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_autoload.php
0.483 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_01_output_basic.php
0.18 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_02_output_advanced.php
0.642 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_03_output_options.php
0.737 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_04_input_basic.php
0.39 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_05_input_advanced.php
1.106 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_06_progressbar_basic.php
0.265 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_07_progressbar_advanced.php
0.582 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_08_statusbar.php
0.641 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_09_table_basic.php
1.063 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_10_table_advanced.php
1 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_11_progressmonitor.php
0.292 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_12_input_arguments.php
1.408 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_13_dialog_question.php
0.539 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_14_dialog_yesnoquestion.php
0.326 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_15_dialog_menu.php
0.722 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_example_output_targets.php
0.301 KB
18 Dec 2019 6.15 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF