-
Notifications
You must be signed in to change notification settings - Fork 126
Sabre VObject Cli
Evert Pot edited this page Sep 1, 2014
·
3 revisions
This is the CLI interface for sabre-vobject.
- Class name: Cli
- Namespace: Sabre\VObject
protected boolean $quiet = false
No output
- Visibility: protected
protected boolean $showHelp = false
Help display
- Visibility: protected
protected string $format
Wether to spit out 'mimedir' or 'json' format.
- Visibility: protected
protected boolean $pretty
JSON pretty print
- Visibility: protected
protected string $inputPath
Source file
- Visibility: protected
protected string $outputPath
Destination file
- Visibility: protected
protected resource $stdout
output stream
- Visibility: protected
protected resource $stdin
stdin
- Visibility: protected
protected resource $stderr
stderr
- Visibility: protected
protected string $inputFormat
Input format (one of json or mimedir)
- Visibility: protected
protected boolean $forgiving = false
Makes the parser less strict.
- Visibility: protected
protected mixed $parser
- Visibility: protected
integer Sabre\VObject\Cli::main(array $argv)
Main function
- Visibility: public
- $argv array
void Sabre\VObject\Cli::showHelp()
Shows the help message.
- Visibility: protected
integer Sabre\VObject\Cli::validate(\Sabre\VObject\Component $vObj)
Validates a VObject file
- Visibility: protected
- $vObj Sabre\VObject\Component
integer Sabre\VObject\Cli::repair(\Sabre\VObject\Component $vObj)
Repairs a VObject file
- Visibility: protected
- $vObj Sabre\VObject\Component
integer Sabre\VObject\Cli::convert(\Sabre\VObject\Component $vObj)
Converts a vObject file to a new format.
- Visibility: protected
- $vObj Sabre\VObject\Component
integer Sabre\VObject\Cli::color(\Sabre\VObject\Component $vObj)
Colorizes a file
- Visibility: protected
- $vObj Sabre\VObject\Component
string Sabre\VObject\Cli::colorize(string $color, $str, $resetTo)
Returns an ansi color string for a color name.
- Visibility: protected
- $color string
- $str mixed
- $resetTo mixed
void Sabre\VObject\Cli::cWrite(string $color, string $str)
Writes out a string in specific color.
- Visibility: protected
- $color string
- $str string
mixed Sabre\VObject\Cli::serializeComponent(\Sabre\VObject\Component $vObj)
- Visibility: protected
- $vObj Sabre\VObject\Component
void Sabre\VObject\Cli::serializeProperty(\Sabre\VObject\Property $property)
Colorizes a property.
- Visibility: protected
- $property Sabre\VObject\Property
void Sabre\VObject\Cli::parseArguments(array $argv)
Parses the list of arguments.
- Visibility: protected
- $argv array
\Sabre\VObject\Component Sabre\VObject\Cli::readInput()
Reads the input file
- Visibility: protected
void Sabre\VObject\Cli::log(string $msg, $color)
Sends a message to STDERR.
- Visibility: protected
- $msg string
- $color mixed