Generic handler to validate and preprocess the arguments of an XML-style parser tag.
More...
|
| __construct (string $name, array $args, Status $status) |
|
| getInt (string $name, $default) |
|
| getFloat (string $name) |
|
| getString (string $name, $default, $regexp=false) |
| Returns value of a named tag attribute with optional validation.
|
|
|
string | $name |
|
Status | $status |
|
Generic handler to validate and preprocess the arguments of an XML-style parser tag.
This class doesn't know anything about the arguments and what they mean.
@license MIT
◆ __construct()
Kartographer\Tag\Tag::__construct |
( |
string | $name, |
|
|
array | $args, |
|
|
Status | $status ) |
- Parameters
-
string | $name | |
string[] | $args | |
Status | $status | |
◆ getFloat()
Kartographer\Tag\Tag::getFloat |
( |
string | $name | ) |
|
- Parameters
-
- Returns
- float|null
◆ getInt()
Kartographer\Tag\Tag::getInt |
( |
string | $name, |
|
|
| $default ) |
- Parameters
-
string | $name | |
string | false | null | $default | |
- Returns
- int|null
◆ getString()
Kartographer\Tag\Tag::getString |
( |
string | $name, |
|
|
| $default, |
|
|
| $regexp = false ) |
Returns value of a named tag attribute with optional validation.
- Parameters
-
string | $name | Attribute name |
string | false | null | $default | Default value or false to trigger error if absent |
string | false | $regexp | Regular expression to validate against or false to not validate |
- Returns
- string|null
The documentation for this class was generated from the following file: