Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Core\Bin\Uuid Class Reference
Inheritance diagram for Hoa\Core\Bin\Uuid:

Public Member Functions

 main ()
 
 usage ()
 
- Public Member Functions inherited from Hoa\Console\Dispatcher\Kit
 __construct (Router $router, Dispatcher $dispatcher, View\Viewable $view=null)
 
 getOption (&$optionValue, $short=null)
 
 setOptions (Array $options)
 
 makeUsageOptionsList (Array $definitions=[])
 
 resolveOptionAmbiguity (Array $solutions)
 
 status ($text, $status)
 
 readLine ($prefix=null)
 
 readPassword ($prefix=null)
 
- Public Member Functions inherited from Hoa\Dispatcher\Kit
 __construct (Router $router, Dispatcher $dispatcher, View\Viewable $view=null)
 
 construct ()
 

Protected Attributes

 $options
 
- Protected Attributes inherited from Hoa\Console\Dispatcher\Kit
 $options = null
 
 $_options = null
 

Additional Inherited Members

- Public Attributes inherited from Hoa\Console\Dispatcher\Kit
 $parser = null
 
- Public Attributes inherited from Hoa\Dispatcher\Kit
 $router = null
 
 $dispatcher = null
 
 $view = null
 
 $data = null
 

Detailed Description

Class .

This command generates an UUID.

Definition at line 50 of file Uuid.php.

Member Function Documentation

Hoa\Core\Bin\Uuid::main ( )

The entry method.

Returns
int

Definition at line 69 of file Uuid.php.

70  {
71  while (false !== $c = $this->getOption($v)) {
72  switch ($c) {
73  case 'h':
74  case '?':
75  return $this->usage();
76 
77  case '__ambiguous':
78  $this->resolveOptionAmbiguity($v);
79 
80  break;
81  }
82  }
83 
84  echo Core::uuid(), "\n";
85 
86  return;
87  }
static uuid()
Definition: Core.php:444
getOption(&$optionValue, $short=null)
Definition: Kit.php:104
resolveOptionAmbiguity(Array $solutions)
Definition: Kit.php:190

Here is the call graph for this function:

Hoa\Core\Bin\Uuid::usage ( )

The command usage.

Returns
int

Definition at line 94 of file Uuid.php.

95  {
96  echo
97  'Usage : core:uuid <options>', "\n",
98  'Options :', "\n",
99  $this->makeUsageOptionsList([
100  'help' => 'This help.'
101  ]), "\n";
102 
103  return;
104  }
makeUsageOptionsList(Array $definitions=[])
Definition: Kit.php:149

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Hoa\Core\Bin\Uuid::$options
protected
Initial value:

Definition at line 57 of file Uuid.php.


The documentation for this class was generated from the following file: