Service/WindowsAzure/CommandLine/sample.php

Show: inherited
Table of Contents

\Sample

Package: Default

Sample command.

Parent(s)
\Zend_Service_Console_Command
Command-handler
sample  
Command-handler-description
Sample command.  
Command-handler-header
Windows Azure SDK for PHP  
Command-handler-header
(C) RealDolmen 2011 - www.realdolmen.com  

Methods

methodpublichelloCommand(string $name,  $bePolite = false) : void

Hello command

Parameters
Name Type Description
$name string
$bePolite
Details
Command-description
Prints Hello, World!  
Command-example
Print "Hello, Maarten! How are you?" (using polite mode):  
Command-example
hello -n:"Maarten" -p  
Command-name
hello  
Command-parameter-for
$name Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_Env --name|-n Required. Name to say hello to.  
Command-parameter-for
$bePolite Zend_Service_Console_Command_ParameterSource_Argv -p Optional. Switch to enable polite mode or not.  
methodpublictimestampCommand() : void

What time is it command

Details
Command-description
Prints the current timestamp.  
Command-name
timestamp  
Documentation was generated by phpDocumentor 2.0.0a8.