TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
CommandArgumentDefinition.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Mvc\Cli
;
3
21
class
CommandArgumentDefinition
{
22
26
protected
$name
=
''
;
27
31
protected
$required
= FALSE;
32
36
protected
$description
=
''
;
37
45
public
function
__construct
(
$name
,
$required
,
$description
) {
46
$this->name =
$name
;
47
$this->required =
$required
;
48
$this->description =
$description
;
49
}
50
54
public
function
getName
() {
55
return
$this->name
;
56
}
57
63
public
function
getDashedName
() {
64
$dashedName = ucfirst($this->name);
65
$dashedName = preg_replace(
'/([A-Z][a-z0-9]+)/'
,
'$1-'
, $dashedName);
66
return
'--'
. strtolower(substr($dashedName, 0, -1));
67
}
68
72
public
function
getDescription
() {
73
return
$this->description
;
74
}
75
79
public
function
isRequired
() {
80
return
$this->required
;
81
}
82
}
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\$name
$name
Definition:
CommandArgumentDefinition.php:26
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\getDashedName
getDashedName()
Definition:
CommandArgumentDefinition.php:63
TYPO3\CMS\Extbase\Mvc\Cli
Definition:
Command.php:2
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\getName
getName()
Definition:
CommandArgumentDefinition.php:54
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\__construct
__construct($name, $required, $description)
Definition:
CommandArgumentDefinition.php:45
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\getDescription
getDescription()
Definition:
CommandArgumentDefinition.php:72
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\$description
$description
Definition:
CommandArgumentDefinition.php:36
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\isRequired
isRequired()
Definition:
CommandArgumentDefinition.php:79
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition
Definition:
CommandArgumentDefinition.php:21
TYPO3\CMS\Extbase\Mvc\Cli\CommandArgumentDefinition\$required
$required
Definition:
CommandArgumentDefinition.php:31
typo3
sysext
extbase
Classes
Mvc
Cli
CommandArgumentDefinition.php
Generated on Wed Aug 7 2019 09:52:24 for TYPO3 CMS by
1.8.13