|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This is the CLI interface for sabre-vobject. More...
Inheritance diagram for Sabre\VObject\Cli:
Collaboration diagram for Sabre\VObject\Cli:Public Member Functions | |
| main (array $argv) | |
| Main function. More... | |
Protected Member Functions | |
| showHelp () | |
| Shows the help message. More... | |
| validate (Component $vObj) | |
| Validates a VObject file. More... | |
| repair (Component $vObj) | |
| Repairs a VObject file. More... | |
| convert ($vObj) | |
| Converts a vObject file to a new format. More... | |
| color ($vObj) | |
| Colorizes a file. More... | |
| colorize ($color, $str, $resetTo='default') | |
| Returns an ansi color string for a color name. More... | |
| cWrite ($color, $str) | |
| Writes out a string in specific color. More... | |
| serializeComponent (Component $vObj) | |
| serializeProperty (Property $property) | |
| Colorizes a property. More... | |
| parseArguments (array $argv) | |
| Parses the list of arguments. More... | |
| readInput () | |
| Reads the input file. More... | |
| log ($msg, $color='default') | |
| Sends a message to STDERR. More... | |
Protected Attributes | |
| $quiet = false | |
| $showHelp = false | |
| $format | |
| $pretty | |
| $inputPath | |
| $outputPath | |
| $stdout | |
| $stdin | |
| $stderr | |
| $inputFormat | |
| $forgiving = false | |
| $parser | |
This is the CLI interface for sabre-vobject.
|
protected |
Colorizes a file.
| Component | $vObj |
Definition at line 493 of file Cli.php.
References Sabre\VObject\Cli\serializeComponent().
Here is the call graph for this function:
|
protected |
Returns an ansi color string for a color name.
| string | $color |
Definition at line 506 of file Cli.php.
Referenced by Sabre\VObject\Cli\cWrite(), Sabre\VObject\Cli\log(), Sabre\VObject\Cli\main(), Sabre\VObject\Cli\serializeProperty(), and Sabre\VObject\Cli\showHelp().
Here is the caller graph for this function:
|
protected |
Converts a vObject file to a new format.
| Component | $vObj |
Definition at line 427 of file Cli.php.
References Sabre\VObject\Document\VCARD21, Sabre\VObject\Document\VCARD30, and Sabre\VObject\Document\VCARD40.
|
protected |
Writes out a string in specific color.
| string | $color | |
| string | $str |
Definition at line 529 of file Cli.php.
References Sabre\VObject\Cli\colorize().
Referenced by Sabre\VObject\Cli\serializeComponent(), and Sabre\VObject\Cli\serializeProperty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Sends a message to STDERR.
| string | $msg |
Definition at line 760 of file Cli.php.
References Sabre\VObject\Cli\colorize().
Referenced by Sabre\VObject\Cli\main(), Sabre\VObject\Cli\repair(), Sabre\VObject\Cli\showHelp(), and Sabre\VObject\Cli\validate().
Here is the call graph for this function:
Here is the caller graph for this function:| Sabre\VObject\Cli::main | ( | array | $argv | ) |
Main function.
Definition at line 99 of file Cli.php.
References Sabre\VObject\$input, $name, PHPMailer\PHPMailer\$options, Sabre\VObject\Cli\colorize(), Sabre\VObject\Cli\log(), Sabre\VObject\Cli\parseArguments(), Sabre\VObject\Cli\readInput(), Sabre\VObject\Cli\showHelp(), and Sabre\VObject\Version\VERSION.
Here is the call graph for this function:
|
protected |
Parses the list of arguments.
| array | $argv |
Definition at line 690 of file Cli.php.
References $argv, $ii, and PHPMailer\PHPMailer\$options.
Referenced by Sabre\VObject\Cli\main().
Here is the caller graph for this function:
|
protected |
Reads the input file.
Definition at line 735 of file Cli.php.
References Sabre\VObject\Reader\OPTION_FORGIVING.
Referenced by Sabre\VObject\Cli\main().
Here is the caller graph for this function:
|
protected |
Repairs a VObject file.
| Component | $vObj |
Definition at line 379 of file Cli.php.
References $warnings, Sabre\VObject\Cli\log(), Sabre\VObject\Node\REPAIR, Sabre\VObject\Component\serialize(), and Sabre\VObject\Component\validate().
Here is the call graph for this function:
|
protected |
Gives a component a 'score' for sorting purposes.
This is solely used by the childrenSort method.
A higher score means the item will be lower in the list. To avoid score collisions, each "score category" has a reasonable space to accomodate elements. The $key is added to the $score to preserve the original relative order of elements.
| int | $key | |
| array | $array |
Definition at line 535 of file Cli.php.
References $key, Sabre\VObject\Component\children(), Sabre\VObject\Cli\cWrite(), Sabre\VObject\Cli\serializeComponent(), and Sabre\VObject\Cli\serializeProperty().
Referenced by Sabre\VObject\Cli\color(), and Sabre\VObject\Cli\serializeComponent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Colorizes a property.
| Property | $property |
Definition at line 621 of file Cli.php.
References Sabre\VObject\Cli\colorize(), Sabre\VObject\Cli\cWrite(), Sabre\VObject\Property\getParts(), Sabre\VObject\Property\getValue(), and Sabre\VObject\Property\parameters().
Referenced by Sabre\VObject\Cli\serializeComponent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Shows the help message.
Definition at line 282 of file Cli.php.
References Sabre\VObject\Cli\colorize(), and Sabre\VObject\Cli\log().
Referenced by Sabre\VObject\Cli\main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Validates a VObject file.
| Component | $vObj |
Definition at line 332 of file Cli.php.
References $warnings, Sabre\VObject\Cli\log(), and Sabre\VObject\Component\validate().
Here is the call graph for this function: